Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default change size of the "Dropdown Menu"

    Hi!

    Does anyone know if it's possible to change (preferably lock) the size of the dropdown menu..?

    Thanks/Jacob

  2. #2
    Join Date
    Jan 2010
    Posts
    124
    Plugin Contributions
    0

    Default Re: change size of the "Dropdown Menu"

    Need a little more information...

    What menu, where is it, maybe a url to take a look? Most settings can be done in a css file however more info is needed.

  3. #3
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: change size of the "Dropdown Menu"

    Hi Paul! Thanks for looking at it. The url is here:http://centuriongames.se/index.php?m...roducts_id=170

    :) /Jacob

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: change size of the "Dropdown Menu"

    Now that we can see it, which dropdown do you mean? "Tillverkare"?
    And how do you mean "change the size"? Make it a fixed menu display of all the items instead of a dropdown?

  5. #5
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: change size of the "Dropdown Menu"

    Hi gjh42! Thanks for also having a look at this. I found out that I could "lock" the position of the element (Dropdown Menu) by setting the width of "attribsSelect" so the Dropdown wouldn't move around (or rather move to the left) based on it's size.. here's comes the charming part.. it's not possible to press the Dropdown Menu (it's like frozen..)

    Forgot to mention, we're talking about the Dropdown Menu on the tpl_product_information_display.

    /Jacob
    Last edited by Soniccc; 29 Nov 2010 at 11:51 PM.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: change size of the "Dropdown Menu"

    To keep the select or dropdown box positoioned the same distance from the left edge no matter what the length of the name, add to your stylesheet

    h4.optionName {width: 106px;}

    or whatever you want. This will apply to all attributes, not just ones with a label of class .attribsSelect.

    The dropdown appears to be frozen because you have used big negative margin-top and padding-top to move #cartAdd around. Change those to smaller dimensions and the dropdown will no longer be screened.

  7. #7
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: change size of the "Dropdown Menu"

    Ok. Thanks.. I'll try that.. is 106px some sort of standard?? 'Cause I've seen it on some other sites.. thanks!

    Will I be able to keep the lay-out if I use smaller margins for the add-to-cart button?/Jacob
    Last edited by Soniccc; 30 Nov 2010 at 12:23 AM.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: change size of the "Dropdown Menu"

    Not at all. It may correspond to some common em size, but has no significance, beside being right in the range that will usually give good results. I used it because it was already in your CSS. On my own, I would have said 100px or 10em.

  9. #9
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: change size of the "Dropdown Menu"

    I missed that part where 106px was already in my css (that's what happens when you're too ######..) referring to all the #### are we not allowed to write g@y here??

    Can I ask why you wrote this particular part of code without a space ('h4.optionName')??

    /JAcob

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: change size of the "Dropdown Menu"

    The forum has spam/pron filters that automatically censor certain words (even if they are actually just part of a completely different word). Kind of annoying sometimes.

    The absense of a space there is essential to the meaning.
    h4.optionName would mean "h4 elements with class optionName".
    h4 .optionName would mean "elements with class optionName inside an h4".

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Adding a "Size guide" link only if the "size" attribute is active in the product
    By dsided in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 7 May 2011, 01:55 PM
  2. How do I change the "sales message goes here" font, size and color?
    By popemil in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Aug 2010, 09:28 PM
  3. Change the "filter by" drop down menu
    By Kayz in forum General Questions
    Replies: 1
    Last Post: 11 Apr 2010, 01:20 PM
  4. How can I change the font size of the "Price" Column?
    By susanshropshire in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 May 2009, 08:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg