Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2008
    Location
    Chicago
    Posts
    7
    Plugin Contributions
    0

    Default Option dropdown alignment?

    Sorry if this is the wrong area to post. I did a search but could not find the results I was looking for.


    I am currently converting over from OSCommerce to Zen-cart which is working wondefully.

    The problem I am having is that my options dropdown boxes are out of alignment versus them falling into alignment on myOS Commerce Site.

    Image below for comparison.
    Tried attaching but too big for forums.


    http://midwayservers.com/images/optalign.jpg


    Is there a way to set this to align like the photo on the left?

  2. #2
    Join Date
    Jan 2008
    Location
    Chicago
    Posts
    7
    Plugin Contributions
    0

    Default Re: Option dropdown alignment?

    Nobody has this issue? Is there a resolution?

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Option dropdown alignment?

    Try posting a link to you Zen Cart page in question

  4. #4
    Join Date
    Jan 2008
    Location
    Chicago
    Posts
    7
    Plugin Contributions
    0

    Default Re: Option dropdown alignment?

    Quote Originally Posted by kobra View Post
    Try posting a link to you Zen Cart page in question
    Here is a link to the page.

    http://acmestats.com/index.php?main_...&products_id=2

    I am building it here to move over to another site. As you can see the dropdown boxes are not alligned. This is on every product, not just this one.

    But they are alligned on my OSCommerce page here.

    http://midwayservers.com/mkportal/mo...6f882e43d49c74


    Thank You.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Option dropdown alignment?

    Osc uses tables for this while Zen Cart does not...maybe it should have?

    As you can see it aligns upon the length of the attribute name.
    You might try adding spaces to the shorter names but these might get stripped?
    There might be a mod for this but I have not checked

  6. #6
    Join Date
    Jan 2008
    Location
    Chicago
    Posts
    7
    Plugin Contributions
    0

    Default Re: Option dropdown alignment?

    Thanks kobra, I was hoping to avoid editing each option name with spaces. I will look for a mod and if none I'll do the space editing.

    Unfortunately it looks very unprofessional without the alignment.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Option dropdown alignment?

    While I have not tested this - the drop box has the "back" class assigned to it in tpl_modules_attributes.php and this is used for several other things. So adjusting via css will most likely cause issues on other pages. But you might be successful at changing the div class to one not existing and using css width & float to align.

    Try editing the red text to ???drop??? or another name in tpl_modules_attributes.php.
    Code:
    <div class="wrapperAttribsOptions">
    <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
    <div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>
    <br class="clearBoth" />
    </div>
    Use overrides for this or if you have not created your own template just preserve the original in case this messes things up

    See what results(should not be much different), then post back and one can address this with css

  8. #8
    Join Date
    Jan 2008
    Location
    Chicago
    Posts
    7
    Plugin Contributions
    0

    Default Re: Option dropdown alignment?

    Will give it a try and report back. For now Ijust added ........ to the back of every option name to align them as spaces were removed.

  9. #9
    Join Date
    Jan 2008
    Location
    Chicago
    Posts
    7
    Plugin Contributions
    0

    Default Re: Option dropdown alignment?

    Just a update. The code did align the dropdowns but pushed the text of the options to center as well. Appreciate all your help kobra but I think I am just going to live with the periods after the option name.

    Thank You.

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

    Default Re: Option dropdown alignment?

    Add to your stylesheet:

    h4.optionName {width: 8em;}

    Adjust to taste.
    This will make all the names occupy the same width, so the following boxes start in alignment.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Product Option Horizontol Alignment
    By kp14 in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 25 Dec 2010, 08:48 PM
  2. Attribute dropdown, vertical alignment
    By edwinlloyd in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 27 Feb 2009, 09:16 AM
  3. Problem with Option Name alignment
    By abcoombe in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 16 Jul 2008, 03:02 PM
  4. Dropdown in Option Name
    By [email protected] in forum General Questions
    Replies: 2
    Last Post: 26 Jul 2006, 03:59 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