|
|||
Hier mal ein Rohentwurf mit Flexbox:
HTML-Code:
<!DOCTYPE HTML> <html> <head> <title>Untitled</title> <link rel="stylesheet" type="text/css" href="!Test.css" /> <style> * { margin: 0; padding: 0; } header,footer,div.left,div.rest { background-color: blue; margin-bottom: 2px; } div.left { width: 100px; float: left; } div.rest { -webkit-flex: 1; -ms-flex: 1; flex: 1; background-color: green; } #wrapper { width: 100%; display: -webkit-flex; display: -ms-flex; display: flex; } </style> </head> <body> <header>Blabla</header> <div class="wrapper"> <div class="left">Blub</div> <div class="rest">Lala</div> </div> <div class="wrapper"> <div class="left">Lulu</div> <div class="rest">Blablub</div> </div> <footer></footer> </body> </html> |
Sponsored Links |
|
|||
Hallo!
Der IE9 kennt aber noch kein Flexbox... Daher vielleicht doch besser altbacken mit float und margin: Edit fiddle - JSFiddle
__________________
Gruß schatzi |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
externe CSS Datei in HTML einbinden | simsam | CSS | 5 | 15.03.2010 20:19 |
usemap splitten unter css UND html | thadan | CSS | 1 | 06.01.2008 17:30 |
CSS in HTML - Hintergrundbild wird nicht angezeigt | fossy | CSS | 7 | 11.10.2007 17:17 |
Hilfe bei gesamten CSS Layout | mexxat | CSS | 0 | 22.08.2007 13:40 |
XML -> HTML mit CSS, erweiterbares layout | tk | CSS | 0 | 29.11.2004 08:41 |