Hallo,
wie in der Überschrift schon erwähnt, bildet sich zwischen Container und Header ein ungewollter Abstand, wie bekomme ich den weg?
Code
@charset "UTF-8";
/* CSS danielsfotos.com */
* html {
margin: 0;
padding: 0;
}
body {
background: #333 url(../images/background.png) top left repeat;
color: white;
}
/* CONTAINER */
div#container {
width: 600px;
height: auto;
margin: 100px auto auto auto;
}
/* NAVIGATION TOP */
div#navigation {
width: 600px;
height: 50px;
margin: 0;
background: url(../images/navigation_background.png) no-repeat;
font: "Myriad Pro", Arial, sans-serif;
font-size: 25px;
}
div#navigation ul {
list-style-type: none;
}
div#navigation li {
float: left;
position: relative;
line-height: 50px;
text-align: left;
}
div#navigation a {
width: 100px;
display: block;
background: transparent;
text-decoration: none;
color: white;
top: 50%;
left: 50%;
}
div#navigation a:hover {
background: transparent;
color: #CCC;
text-decoration: none;
top: 50%;
left: 50%;
}
/* HEADER */
div#header {
width: 600px;
height: 150px;
background: url(../images/header/header_1.jpg) no-repeat;
margin: 0 auto 0 auto;
}
/* CONTENT */
div#content {
width: 600px;
height: auto;
margin: 0 auto 0 auto;
background: url(../images/content_background.png) repeat-y;
}
/* FOOTER */
div#footer {
position: absolute;
bottom: 0;
}
Alles anzeigen