|
|||
css layout problem
hi,
ich mach mir gerade ein css layout für eine kleine homepage und stoße dabei auf ein problem bei dem ich nicht mehr weiter weiss. Das layout soll folgendermaßen aussehen. Hierbei lässt sich die box4 leider nicht in den bereich von box2 und box3 schieben, sondern befindet sich am unterenrand von box3. mit position absolute konnte ich das problem lösen, nur dann verschiebt sich das gamesamt layout im internet explorer. deswegen würde ich lieber mit float arbeiten. ...................box1................. box2 ..................box4.................. box3 css datei Code:
#banner { background-color:red; height:150px; width:400px; margin-left:150px; } #menu1 { background-color:blue; height:100px; width:100px; margin-left:10px; margin-top:10px; float:left; } #menu2 { background-color:blue; height:100px; width:100px; margin-left:10px; margin-top:10px; clear:left; } #inhalt { background-color:blue; height:500px; width:500px; margin-left:200px; } Code:
<html> <head><link rel="stylesheet" type="text/css" href="includes/style.css"></head> <body> <div id="banner"></div> <div id="menu1"></div> <div id="menu2"></div> <div id="inhalt"></div> </div> </body> </html> |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
CSS layout problem | donky | CSS | 5 | 05.06.2009 17:56 |
Problem mit CSS Layout | jojoho | CSS | 9 | 20.07.2008 23:16 |
layout mit css - problem | xxlcss | CSS | 1 | 30.12.2005 03:25 |
problem ausrichtung grafik und rand (css layout) | celine@23 | Barrierefreiheit | 1 | 28.12.2005 14:05 |
includes bei css layout | dan | CSS | 2 | 10.03.2004 19:21 |