ndakota
29-04-2008, 16:11
ho questo html:
<html>
<head>
<link href="style.css" rel="stylesheet" style="text/css">
<title>prova</title>
</head>
<body>
<div id = "container">
<div id = "header"></div>
<div id = "centerOne"></div>
<div id = "centerTwo"></div>
<div id = "centerThree"></div>
<div id = "footer"></div>
</div>
</body>
</html>
e questo css:
#container
{
width: 80%;
height: 100%;
margin-left: auto;
margin-right: auto;
}
#header
{
height: 20%;
background-color: red;
}
#centerOne
{
width: 15%;
height: 60%;
background-color: yellow;
float: left;
clear: left;
}
#centerTwo
{
width: 70%;
height: 60%;
background-color: green;
float: left;
}
#centerThree
{
width: 15%;
height: 60%;
background-color: silver;
float: left;
}
#footer
{
height: 20%;
background-color: blue;
clear: both;
}
con firefox tutto è ok, mentre con ie(7) centerThree mi va sotto e footer più sotto ancora..
1)cosa provoca questo? cosa non piace a ie?
2)meotdi cross-browser per centrare il tutto?
grazie. :)
<html>
<head>
<link href="style.css" rel="stylesheet" style="text/css">
<title>prova</title>
</head>
<body>
<div id = "container">
<div id = "header"></div>
<div id = "centerOne"></div>
<div id = "centerTwo"></div>
<div id = "centerThree"></div>
<div id = "footer"></div>
</div>
</body>
</html>
e questo css:
#container
{
width: 80%;
height: 100%;
margin-left: auto;
margin-right: auto;
}
#header
{
height: 20%;
background-color: red;
}
#centerOne
{
width: 15%;
height: 60%;
background-color: yellow;
float: left;
clear: left;
}
#centerTwo
{
width: 70%;
height: 60%;
background-color: green;
float: left;
}
#centerThree
{
width: 15%;
height: 60%;
background-color: silver;
float: left;
}
#footer
{
height: 20%;
background-color: blue;
clear: both;
}
con firefox tutto è ok, mentre con ie(7) centerThree mi va sotto e footer più sotto ancora..
1)cosa provoca questo? cosa non piace a ie?
2)meotdi cross-browser per centrare il tutto?
grazie. :)