Hi there,

Iīm new to this forum, and donīt know if you have discussed about this problem (sorry about my english, Iīm not native):

Iīll try to explain it:

I have a background-image sized 995px width to fit in a div.
If I code with px, the image renders equal in all browers but If I change the body font-size:62.5% and fit the image in a div styled 99.5em width, the image crops in IE7/IE8.
But If I set the body font-size:100% and fit the image in a div styled 62.19em width, I can see the image perfecty fitted in all browsers.

I use a lot the 62.5% rule so that I can code xthml/css quickly as 1px is converted more or less into 0.1em. So the design is easily divided into pixeles and converted to ems so what we can comply with accessibility compliances and xhtml standards.

Does anyone observed the same "crop" efect? Is it related with the ie box model? or it has to do with how IE smooths the fonts?
If it is the same conversion why with 62.5% doesnīt work?

Thanking you in advance,

Here is the css code used for the example
Code CSS:
/* 
=Reset -------------*/
ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,address,fieldset,input,table,th,td{ margin:0; padding:0;}
ul,ol { list-style:none;}
a{outline:none;}
a:link,a:visited { text-decoration:none;}
a img,:link img,:visited img { border:none;}
a:hover,a:focus{text-decoration:underline;}
 
body {font-size:62.5%;font-family:"Arial",Geneva, Helvetica, sans-serif; color:#1a1a1a;}
 
#webcontainer { width:99.5em; margin:0 auto;}
#header { position:relative; float:left; width:100%; background-color:#Ccc; height:4em;}
#navbar { position:relative; float:left; width:100%; background-image:url(fond_botonera.jpg); background-repeat:no-repeat; background-position:top left; width:100%; height:2.9em;}

and here the html code
Code HTML4Strict:
<body>
<div id="webcontainer">
<div id="header"></div>
<div id="navbar"></div>
</div>
</body>