Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mozilla lengths

Status
Not open for further replies.

purpleski

IS-IT--Management
Aug 14, 2002
112
0
0
FR
Hi

I have recently redesigned my site using CSS and was then informed by a client that it does not render properley in Mozilla.

I have fixed some problems but the two browsers seem to interpret lengths/distance differently. ie if you set a width to say 89px for the buttons on the left of the page (see in Mozilla the buttons are about 20% wider than in IE6.

Can anybody explain this? Additionally colours appear to be a different colour?

Thanks.
 
This is because Mozilla, according to W3C standards, adds the declared width to the border and padding to get the actual width for objects. IE includes the padding and border in the width you declare so things will look smaller in IE.
Here's a good explanation and workaround:


Kevin
A+, Network+, MCP
 
Thanks for that I am off to try the work around



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top