Mit Tabellen-Layout wäre es wohl kein Problem aber ich wollte das jetzt <div>baisert hinbekommen.
Meine html sieht momentan so aus:
Alles anzeigen
Meine CSS:
Alles anzeigen
Das ganze basiert aus einer Kombination folgender Tutorials:
absalom.biz/tutorials/Mambo_Template_Tutorial.html
w3.org/TR/CSS2/visuren.html#absolute-positioning
w3.org/2002/03/csslayout-howto
und sieht so aus:
christoph.sf-ogame.de/test/div-layout/
Wie man unschwehr erkennen kann ist das noch nicht ganz wie beabsichtigt. Ich hätte gerne den Footer direkt anschließend unter dem Hauptbereich und oben den Titelbereich nicht überdeckt.
Ich nehmen Korrekturen genauso wie gute Nachschlagequellen
Meine html sieht momentan so aus:
Quellcode
- <!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">
- <head>
- <title>test.html</title>
- <meta name="author" content="darthdespotism" />
- <link rel="stylesheet" href="template.css" type="text/css" />
- </head>
- <body>
- <div id="container">
- <div id="top">Das ist oben!</div>
- <div id="middle">
- <div id="nav"><ul>
- <li>Home</li>
- <li>Test</li>
- <li>Lustig</li>
- </ul></div>
- <div id="main">Das ist der Hauptbereich!</div>
- </div>
- <div id="bottom">© Christoph Egger</div>
- </div>
- </body>
- </html>
Meine CSS:
Quellcode
- *
- {
- padding: 0;
- margin: 0;
- }
- body
- {
- height: 800px;
- text-align: center;
- }
- #container
- {
- position: fixed;
- width: 900px;
- height: 800px;
- margin-left: auto;
- margin-right: auto;
- background-color: #000000;
- }
- #top
- {
- position: fixed;
- width: 800px;
- height: 80px;
- top: 0;
- right: 0;
- bottom: auto;
- left: 0;
- background-color: #00FF00;
- margin-left: auto;
- margin-right: auto;
- }
- #middle
- {
- position: fixed;
- width: 800px;
- height: auto;
- top: 80;
- right: 0;
- bottom: auto;
- left: 0;
- background-color: #00FF00;
- min-height: 330px;
- margin-left: auto;
- margin-right: auto;
- text-align: left;
- }
- #nav
- {
- width: 120px;
- float: left;
- height: auto;
- }
- #main
- {
- width: 680;
- height: auto;
- background-color: #0000FF;
- }
- #bottom
- {
- position: fixed;
- width: 800px;
- height: 80px;
- top: auto;
- right: 0;
- bottom: 0;
- left: 0;
- background-color: #FFFF00;
- }
Das ganze basiert aus einer Kombination folgender Tutorials:
absalom.biz/tutorials/Mambo_Template_Tutorial.html
w3.org/TR/CSS2/visuren.html#absolute-positioning
w3.org/2002/03/csslayout-howto
und sieht so aus:
christoph.sf-ogame.de/test/div-layout/
Wie man unschwehr erkennen kann ist das noch nicht ganz wie beabsichtigt. Ich hätte gerne den Footer direkt anschließend unter dem Hauptbereich und oben den Titelbereich nicht überdeckt.
Ich nehmen Korrekturen genauso wie gute Nachschlagequellen

There are only 10 types of people in the world: Those who understand binary, and those who don't.
Download meines ersten Spiels:HIER
Über Feedback würde ich mich freuen
Download meines ersten Spiels:HIER
Über Feedback würde ich mich freuen
