Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    Lansing, MI
    Posts
    147
    Plugin Contributions
    0

    Default Attribute Alignment in Product Listing

    On the following item:

    http://nboriginals.com/index.php?mai...&products_id=1

    I have two textfield attributes. I know that I have to make them the same size (that I can do) so they will match, but I'm curious how to get both of them to align to the left, so they appear one right after the other.

  2. #2
    Join Date
    Apr 2006
    Location
    Lansing, MI
    Posts
    147
    Plugin Contributions
    0

    Default Re: Attribute Alignment in Product Listing

    Fixed the layout with the button but I'm still having a problem: How do I make it so that instead of:

    ( text box ) Attribute name
    (larger text box) Attribute name

    I get this:

    Attribute Name
    (text box)
    Attribute Name
    (larger text box)

    Basically I want to left align everything, switch the postions of the attribute 'box' / name and set the 'name' on top of the 'box'

    I hope that makes sense.

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

    Default Re: Attribute Alignment in Product Listing

    Add to your stylesheet:
    Code:
    .wrapperAttribsOptions {position: relative;} 
    h4.optionName {
        float: left; 
        margin-bottom: 1em;
        }
    .wrapperAttribsOptions select, .wrapperAttribsOptions input {
        position: absolute; 
        top: 2.3em;
        left: 0.3em;
        }

  4. #4
    Join Date
    Apr 2006
    Location
    Lansing, MI
    Posts
    147
    Plugin Contributions
    0

    Default Re: Attribute Alignment in Product Listing

    Thank you! That gets them where I need them to be but it's doing a funky stair-step deal.

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

    Default Re: Attribute Alignment in Product Listing

    Are you looking at it in IE? It looks perfect in Firefox.
    I'll have to check IE.

    Well that's really annoying! Position: absolute is supposed to make the element independent of other elements, but IE is hanging it up on something anyway.
    Last edited by gjh42; 27 Nov 2007 at 08:52 PM.

  6. #6
    Join Date
    Apr 2006
    Location
    Lansing, MI
    Posts
    147
    Plugin Contributions
    0

    Default Re: Attribute Alignment in Product Listing

    Yep. IE 6.

    Personally I prefer Firefox, but more people use IE than it, so I have to make sure that the design works across all browers.

    Thank you for your help, by the way. I've been thread-surfing all day and my head is starting to throb over this.
    Last edited by Tig; 27 Nov 2007 at 08:50 PM. Reason: commentary and thanks

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

    Default Re: Attribute Alignment in Product Listing

    Increasing the margin-bottom and the top: 2.3em a bit might allow the elements to fit better.

 

 

Similar Threads

  1. v150 Prevent alignment issues in product listing pages when product title lengths differ
    By OLCS in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Nov 2012, 11:48 PM
  2. Product Listing Content Alignment
    By juukyuu in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Jan 2012, 07:13 AM
  3. Product Attribute Alignment
    By scottmcclean in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Oct 2011, 03:38 PM
  4. Column Alignment in Product Listing
    By wiccan0974 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jun 2010, 10:29 AM
  5. Product listing page alignment problem
    By dscott1966 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Dec 2008, 10:37 PM

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