soulxheart
Mitglied
Guten Tag
Wollte mir eben so eine Art simplen Grafikentwurf erstellen. Habe mir dazu eine einfache HTML-Seite wie folgt erstellt:
Diese habe ich folgendermassen formatiert:
[css]
body {
font-weight:normal;
font-size:10pt;
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
text-align:center;
background-color:#fff;
color:#000;
margin:0;
padding:0;
}
#content {
margin:0 auto;
width:1000px;
text-align:left;
border:1px solid black;
}
header {
height:60px;
background-color:red;
}
article {
height:500px;
margin-right:200px;
background-color:green;
}
aside {
width:180px;
height:500px;
background-color:grey;
float:right;
}
footer {
height:60px;
background-color:aqua;
}
[/css]
Wenn ich nun die "Container" mit Text fülle, erhalte ich überall einen weissen Rand/Abstand. Setze ich also drei Navigationspunkte, erscheint oberhalb des <header> eine weisse, etwa 5px hohe Fläche.
Was kann ich dagegen tun, dass die Container alle aneinander liegen, auch wenn sie mit Inhalt gefüllt sind?
Danke für die Hilfestellungen.
Wollte mir eben so eine Art simplen Grafikentwurf erstellen. Habe mir dazu eine einfache HTML-Seite wie folgt erstellt:
HTML:
<!DOCTYPE html>
<html lang="de" xml:lang="de">
<head>
</head>
<body>
<div id="content">
<header></header>
<aside></aside>
<article></article>
<footer></footer>
</div>
</body>
</html>
[css]
body {
font-weight:normal;
font-size:10pt;
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
text-align:center;
background-color:#fff;
color:#000;
margin:0;
padding:0;
}
#content {
margin:0 auto;
width:1000px;
text-align:left;
border:1px solid black;
}
header {
height:60px;
background-color:red;
}
article {
height:500px;
margin-right:200px;
background-color:green;
}
aside {
width:180px;
height:500px;
background-color:grey;
float:right;
}
footer {
height:60px;
background-color:aqua;
}
[/css]
Wenn ich nun die "Container" mit Text fülle, erhalte ich überall einen weissen Rand/Abstand. Setze ich also drei Navigationspunkte, erscheint oberhalb des <header> eine weisse, etwa 5px hohe Fläche.
HTML:
Danke für die Hilfestellungen.
Zuletzt bearbeitet: