Folgendes etwas farbenfrohes Beispiel:
Aus welchem Grunde verschiebt sich (im Firefox und Opera) die Position den "content" Layers, wenn der "gothiclayer" einen Margin hat ...
Wahsaga hat sicherlich 'ne Erklärung ...
Code:
<?xml version="1.0" encoding="utf-8"?>
<!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" xml:lang="de" lang="de" dir="ltr">
<head>
<title>Divs</title>
<style type="text/css">
body {
background: yellow;
}
div.header {
position: relative;
height: 100px;
background: green;
}
div.content {
position: relative;
height: 400px;
background: blue;
margin: 0px;
}
div.footer {
position: relative;
height: 100px;
background: red;
}
div.gothiclayer {
position: relative;
height: 50px;
width: 50px;
background: magenta;
margin: 20px;
}
</style>
</head>
<body>
<div class="header">
</div>
<div class="content">
<div class="gothiclayer">
</div>
</div>
<div class="footer">
</div>
</body>
</html>
Wahsaga hat sicherlich 'ne Erklärung ...
Moderator
Comment