kasimir83
Lounge-Member
Morjens.
Folgendes Snippet sieht in FiFo und Opera aus wie gewollt. Im IE wird der margin-left von 5 auf 10 Pixel verdoppelt. Sobald ich float:left rausnehme passt es wieder, aber das Float brauch ich schon. Was treibt der IE da?
Danke
kasimir
Folgendes Snippet sieht in FiFo und Opera aus wie gewollt. Im IE wird der margin-left von 5 auf 10 Pixel verdoppelt. Sobald ich float:left rausnehme passt es wieder, aber das Float brauch ich schon. Was treibt der IE da?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<style type="text/css">
body
{
margin:0px;
background-color:#3f76a0;
}
#menuContainer
{
width:130px;
height:497px;
margin:5px 5px 5px 5px;
background-color:#CCFF33;
overflow:hidden;
float:left;
}
#content
{
float:left;
width:520px;
height:497px;
margin:5px 5px 5px 0px;
background-color:#00CC99;
overflow:hidden;
}
</style>
</head>
<body>
<div id="menuContainer"></div>
<div id="content"></div>
</body>
</html>
Danke
kasimir