Gogeta ss4
07-02-2011, 16:47
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.
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;
}
Index.html
<!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> <!-- /header -->
<div id="navigation">
</div> <!-- /navigation -->
<div id="content">
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
</div> <!-- content -->
</div> <!-- container -->
</div> <!-- right -->
</div> <!-- left -->
</body>
</html>
Se elimino il doctype invece mi funziona correttamente.
Cosa può essere?
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.
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;
}
Index.html
<!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> <!-- /header -->
<div id="navigation">
</div> <!-- /navigation -->
<div id="content">
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
a<p>
</div> <!-- content -->
</div> <!-- container -->
</div> <!-- right -->
</div> <!-- left -->
</body>
</html>
Se elimino il doctype invece mi funziona correttamente.
Cosa può essere?