Hey,
hat vielleicht jemand eine Idee wie ich bei dem folgenden Beispiel den "divZwei" außerhalb des "divEins" positionieren kann?
Problem gelöst:
HTML
<!doctype html>
<html>
<head>
<title>Titel</title>
<meta charset="ISO-8859-1" />
<meta name="description" content="" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<style>
* {
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
nav {
display: block;
}
div#wrap {
position: relative;
left: 50%;
margin-left: -400px;
width: 800px;
height: 100%;
background-color: red;
}
nav {
margin-left: -157px;
width: 157px;
min-height: 800px;
background-color: #008000;
}
div#logo {
margin-left: -245px;
width: 245px;
height: 87px;
background-color: blue;
}
</style>
</head>
<body>
<div id="wrap">
<nav>
<div id="logo"></div>
</nav>
</div>
</body>
</html>
Alles anzeigen