ich möchte mir ein Layout erstellen das im groben so aussehen soll:
möchte das in CSS machen. Das blaue soll von oben bis unten gehen. Hab schon versucht eine Box (das blaue) mit der id=container zu erstellen. Nur dann wird einfach nur der Text farbig hinterlegt.
mein HMTL:
HTML-Quellcode
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- <title>Titel</title>
- </head>
- <body>
- <div id=container>Das ist ein Test. Das sollte die erste Box des Desings sein.</div>
- </body>
- </html>
und mein style.css:
Quellcode
- p { font-family: Verdana; font-size: 14px; }
- h1 { font-family: Verdana; font-size: 22px; }
- h2 { font-family: Verdana; font-size: 20px; }
- h3 { font-family: Verdana; font-size: 18px; }
- a:link { color: #6699CC; }
- a:visited { color: #660099; }
- a:active { color: #FFFF00; }
- a:hover { color: orange; text-transform: uppercase;}
- #container { margin-left: 20%; margin-right: 20%; background-color: blue; border-width: 2px; border-color: black; }
Wie kann ich das bewerkstelligen??? hab nirgendwo etwas brauchbares gefunden. Mit Tabellen weis ich wie ich es machen muss, das will ich aber vermeiden...