Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2011
    Posts
    12
    Plugin Contributions
    0

    Default how to align buttons on the product listing page on the same horizontal line?

    Hi,

    I want to align the buttons "details", "buy now" and "free shipping" to the bottom of the each product listing on the same horizontal level in all product list. Now, it looks a bit messy as some buttons are higher/lower than the others.

    Please help! Can I add some div to some php files?

    http://er2.com.au/index.php?main_page=index&cPath=1

    Eva

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

    Default Re: how to align buttons on the product listing page on the same horizontal line?

    Find in your stylesheet.css
    Code:
    .centerBoxContentsProducts {
    	border: 1px solid #cccccc;
    	padding: 1em 0em;
    	margin: 4px;
    	height: 230px;
    }
    edit to this
    Code:
    .centerBoxContentsProducts {
    	border: 1px solid #cccccc;
    	padding: 1em 0em;
    	margin: 4px;
    	height: 235px;
    	position: relative;
    }
    
    .itemCartAdd {
        position: absolute;
        top: 182px;
        width: 100%;
        }
    
    .itemCartAdd+img {
        position: absolute;
        top: 227px;
        left: 27.5%;
        }

  3. #3
    Join Date
    Oct 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: how to align buttons on the product listing page on the same horizontal line?

    Thank you so much! It works!!!!!

  4. #4
    Join Date
    Oct 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: how to align buttons on the product listing page on the same horizontal line?

    Hi,

    After I add the coding. It works perfectly in Firefox and IE8. However, if the page load in IE7 or below version, the button moves!! Please help, how can I fix it to be presented correctly in all browser.

    Name:  button move.jpg
Views: 158
Size:  21.7 KB

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

    Default Re: how to align buttons on the product listing page on the same horizontal line?

    Older IE did not support the adjacent selector (.itemCartAdd+img), so would ignore that whole rule. I don't think there is a viable workaround for that short of rewriting code to add another class tag.
    IE bugs for older versions are well documented and not related to Zen Cart, so your best bet is to google for them.

 

 

Similar Threads

  1. v153 Vertically Align Product Listing Price On Same Line
    By choochoo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Oct 2014, 10:03 PM
  2. v139g How do I make the weight the same on all listing when adding a product?
    By cahoca in forum Customization from the Admin
    Replies: 3
    Last Post: 3 Apr 2012, 09:57 AM
  3. how to align product pics in the same size? NEED HELP!!
    By mubasher in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Feb 2011, 04:31 AM
  4. How to align the main and additional product images in the listing?
    By mishutkadesign in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 17 Jul 2008, 02:49 PM
  5. How do I add line to the product listing page
    By amopro in forum Basic Configuration
    Replies: 3
    Last Post: 16 Mar 2007, 04:01 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR