Ciao a tutti,
ho un div container che è largo 967px che scorre dentro due immagini che si ripetono verticalmente larghe 19px.
Il problema è che su IE vedo il div container 2px più largo.
Index.htmlcodice:body,html,table,form { margin : 0; padding: 0; } body { font-family: arial,sans-serif; font-size: 76%; } div#left { background: url(sx.jpg) repeat-y left; } div#right { background: url(dx.jpg) repeat-y right; } div#container { position:relative; width: 967px; margin: 0 19px 0 19px; border-style: solid; border-width: 1px; } div#header { font-size: 10px; color: #AF7BD7; font-weight: bold; } div#navigation { float:left; width: 200px; margin-top: 10px; } div#content { margin-left:200px; padding: 1em; } div#footer { clear: both; }
Se elimino il doctype invece mi funziona correttamente.codice:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//IT" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Butterfly Bjoux Beta 1.0</title> <style> @import url(style.css); </style> </head> <body> <div id="left"> <div id="right"> <div id="container"> <div id="header"> </div> <div id="navigation"> </div> <div id="content"> a a a a a a a a a a a a a a a a a a a a a a a a a a </div> </div> </div> </div> </body> </html>
Cosa può essere?

Rispondi quotando