Results 1 to 4 of 4
  1. #1
    Join Date
    May 2011
    Location
    Sydney, Australia
    Posts
    32
    Plugin Contributions
    0

    Default Horizontal Dropdown Attributes

    Hi! I'm using v1.3.9h and I seem to have come a little unstuck with my attributes.

    I have 4 dropdown attributes currently aligned vertically and I would like them to align horizontally to take up less space. Preferably 2 rows with 2 drop downs in each row.

    I've tried searching and the closest I came was http://www.zen-cart.com/forum/showth...rop+attributes

    I have changed the coding as suggested from:
    Code:
    <div class="wrapperAttribsOptions">
    <div class="optionName back"><?php echo $options_name[$i]; ?></div>
    <div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>
    <br class="clearBoth" /></div>
    to
    Code:
    <div class="wrapperAttribsOptions">
    <div class="optionName"><?php echo $options_name[$i] . '&nbsp;'; ?><?php echo '&nbsp;' . $options_menu[$i]; ?></div>
    The only thing that changed was from a vertical dropdown aligned right, it is now aligned left.

    I have also tried going through admin/catalog/option names manager and selecting rows to 4 with no luck either.

    My site is :http://www.amabelle.elementfx.com/sh...roducts_id=198

    Any help or ideas would be most appreciated!
    Thank you

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: Horizontal Dropdown Attributes

    Flexible Attributes in Free Addons will let you customize the attributes layout.

  3. #3
    Join Date
    May 2011
    Location
    Sydney, Australia
    Posts
    32
    Plugin Contributions
    0

    Default Re: Horizontal Dropdown Attributes

    Thanks gjh42! I've gotten one step closer but it seems to have a staggered effect?

    Code:
    /*attribute layout*/
    .wrapperAttribsOptions label {font-size: 1.0em;}/*make "label" elements match other text*/
    h3#attribsOptionsText {display: none;}/*hide the "Please Choose:" heading*/
    h4.optionName {font-size: 1.0em;}
    .wrapperAttribsOptions+br.clearBoth {display: none;}/*allow floated attributes to sit side by side if desired*/
    #wAttrib-1 {clear: left; float: left;}#wAttrib-2 {clear: left;}/*this will sit beside #wAttrib-11*/
    #wAttrib-3 {clear: left;float:left;}/*this will sit on a new line*/#wAttrib-20 {clear: left;}
    the result is here http://www.amabelle.elementfx.com/sh...roducts_id=197

    Am I missing something to make it align next to each other?

  4. #4
    Join Date
    May 2011
    Location
    Sydney, Australia
    Posts
    32
    Plugin Contributions
    0

    Default Re: Horizontal Dropdown Attributes

    Nevermind - Success!! For anyone else who has the same problem I hope this helps for you too. A huge thanks to gjh42 for the mod. Once you get the hang of zen, it's amazing how much you can do!

    /*attribute layout*/
    .wrapperAttribsOptions label {font-size: 1.0em;}
    h3#attribsOptionsText {display: none;}
    h4.optionName {display:none} */this is because I didn't want the Option Names visible as headers but inside the drop down menu, to get this effect: 1. Insert value with the same name
    2. Upload in Attribute Controller
    3. Make it "Default Value" and "Display Only" in the Attributes Controller legend
    4. Update sort order*/
    .wrapperAttribsOptions+br.clearBoth {display: none;}
    #wAttrib-1 {clear: left; float: left;}
    #wAttrib-2 {float: left;}
    #wAttrib-3 {float: left;float:left;}
    #wAttrib-20 {float: left;}
    .attribsOptions {margin-right: 1.0em;}

 

 

Similar Threads

  1. How can I replace the #navCatTags with spyra horizontal dropdown menu?
    By bennyTheBull in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 May 2010, 01:32 PM
  2. Issue with Horizontal Dropdown Menu
    By ideasgirl in forum Addon Templates
    Replies: 2
    Last Post: 30 Sep 2008, 10:17 PM
  3. CSS Horizontal Drop Down menu - dropdown menu width...
    By intrium in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Aug 2008, 06:48 PM
  4. attributes in horizontal loop
    By roboto in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 May 2007, 04:41 AM
  5. Unified Horizontal Dropdown menu
    By atracksler in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Oct 2006, 09:58 PM

Bookmarks

Posting Permissions

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