Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Some DIV cross browser issues regarding product listing prices

Some DIV cross browser issues regarding product listing prices

Views: 575

Results 1 to 2 of 2
16 Jun 2011, 11:52 AM
#1
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Some DIV cross browser issues regarding product listing prices

Can any one help. Ive managed to align all the prices to bottom in their own divs as you can see in the following screen shots, by making the centreboxcontents divs relative, and the .standardprice div absolute, which sits inside it.

With the margins auto, its sits perfectly in Chrome in the middle of the box, but in Firebox and IE it sits way over to the right, and I cannot for the life of me figure out why. Any ideas? Code in my style sheet is below.

.centerBoxContentsNew {height: 210px; border: 0px solid #000000; position:relative;}

.centerBoxContentsProducts {height: 270px; border: 0px solid #000000; position:relative;}

.standardprice {
 font: bold 28px arial;
 position: absolute;
 letter-spacing: -1px;
margin-right:auto; margin-left:auto; width: 100%;
	float:center;
	bottom: 0;
	text-align: center;
	line-height: 150%;
}

Chrome:
http://www.zen-cart.com/forum/attachment.php?attachmentid=9364&stc=1&d=1308225021

Firefox & IE
http://www.zen-cart.com/forum/attachment.php?attachmentid=9365&stc=1&d=1308225081

16 Jun 2011, 12:57 PM
#2
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Some DIV cross browser issues regarding product listing prices

Fixed - In the function_prices.php file where the ref for the .standardprices was, it was a <span> tag instead of a <div> tag - Once changed works fine in all browsers.