|
|||
Mal wieder eine Frage zum grundlegenden Aufbau
Hallo,
ich zerbreche mir seit einiger Zeit den Kopf über folgendes Problem. Wahrscheinlich nur eine Kleinigkeit. Ich möchte in einer Box zwei weitere Bereiche (Boxes) ansordnen. Diese sollen nebeneinander liegen und die Höhe sollte automatisch größer werden. Der "Footer" wird dementsprechend nach unten weggeschoben. Es soll letztendlich eine Seite wie z.B. Focus.de entstehen. Oben das Menu und ein header, links-body ein textbereich und rechts-body für Zusatzmenü. Drunter dann einen Footer. Ich hoffe ich konnte mich verständlich ausdrücken. Hier noch mal als HTML/CSS. Danke, tomtomtom <html> <head> <style type="text/css"> <!-- body,html{ font: 10px Verdana, Arial, Helvetica, sans-serif; color: #666666; background: #fff; height: 100%; padding: 0; margin: 0; background-image: url(../gfx/body_bg.jpg); background-position: top center; background-repeat: repeat-y; } #page{ width: 800px; padding: 0; margin-top: 0; margin-right: auto; margin-bottom: 110px; margin-left: auto; position: relative; top: 0; min-height: 100%; /* For Modern Browsers */ height: auto !important; /* For Modern Browsers */ height: 100%; /* For IE */ border: 1px solid silver; } #content { width: 780px; padding-bottom: 80px; border: 0; margin-top: 7px; margin-left: 9px; font: normal 10px verdana, arial; color:#666666; height:auto !important; } #box_left { position:relative; height: auto; min-height: 300px; border: 1px solid silver; text-align: left; padding-left: 10px; margin-bottom: 10px; width: 459px; z-index: 20; } #box_right { position: relative; heigth: auto; min-height: 300px; border: 1px solid silver; text-align: left; margin-left: 479px; margin-bottom: 10px; width: 300px; z-index: 10; } #footer{ clear: both; width: 100%; margin: 0; padding: 0; position: absolute; bottom: 0 !important; bottom: -1px; height: 80px; text-align: center; font: normal 10px verdana, arial; border: 1px solid silver; } --> </style> <title>Das ist die Seite :: etieS eid tsi saD</title> <meta content="Evrsoft First Page" name="GENERATOR"> </head> <body> <div id="page"> <div id="content"> <div id="box_left"> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> v v <p>hallo</p> <p>hallo</p> <p>hallo</p></div> <div id="box_right"></div> </div> <div id="footer">Ich bin ein Footer</div> </div> </body> </html> |
Sponsored Links |
|
||||
Hm, du verwendest einen komischen Aufbau, finde ich.
Nimm zwei div- Boxen und floate sie miteinander und setzte eine min-height, bzw height:auto;, also vergeb keine feste größe. Den footer einfach unter die divs setzten. Bsp: Code:
[...] <body> [...] <div style="float:left;">Texte und alles so</div> <div style="float:left;>Dein Zusatzmenü</div> <div style="clear:both;">Dein Footer</div> [...] </body>
__________________
CSS-FAQ beantwortet die meisten Fragen | Retro coding gegen Divitis | Code validieren & posten für Hilfe |
Sponsored Links |
|
||||
Zitat:
Code:
<div id="page"> <div id="content"> <div id="box_left"> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> <p>hallo</p> v v <p>hallo</p> <p>hallo</p> <p>hallo</p></div> <div id="box_right"></div> </div> <div id="footer">Ich bin ein Footer</div> </div>
__________________
CSS-FAQ beantwortet die meisten Fragen | Retro coding gegen Divitis | Code validieren & posten für Hilfe |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Script Aufbau Frage (Generell) | dan_23 | Serveradministration und serverseitige Scripte | 2 | 10.07.2008 14:43 |
Skript Aufbau Frage ? | dan_23 | Serveradministration und serverseitige Scripte | 9 | 14.03.2008 01:01 |
Css aufbau frage bei einer Seite! | xero | CSS | 1 | 13.07.2007 18:52 |
Aufbau frage drumrumschreiben? | xero | CSS | 1 | 06.07.2007 21:19 |
Frage zum Aufbau eines Layouts | Flex32 | (X)HTML | 12 | 21.11.2005 14:42 |