|
|||
Simple Formatierung (zentrieren und seitenfluss..)
Also was ich gern machen wollte wäre eine einfache seite bestehend aus einem "Kopf" einem "Menü" genau unter dem Kopf dann ein bereich der sich füllt mit einem Bild (1px hoch 1024 breit) und dann noch den fuß...
zz. hab ich das so: Code:
<html> <head> <title>Testpage </title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body background="images/background.png"> <div id="container"> <div id="header"></div> <div id="menu"></div> <div id="bgrnd"> </div> <div id="footer"></div> </div> </body> </html> Code:
#container { margin: 0em auto; width: 1024px; text-align: left; } #header { height: 200px; width: 100%; background-image: url(images/head.png); background-repeat: no-repeat; background-position: 0 0; position: relative; } #menu { height: 30px; width:100%; background-image: url(images/menu.png); background-repeat: no-repeat; position:relative; margin-top:-4px; } #bgrnd{ width:100%; background-image: url(images/body.png); background-repeat: repeat-y; position:relative; margin-top:-4px; padding-left:40px; } #footer { height: 200px; width: 100%; clear: both; background-image: url(images/bottom.png); background-repeat: no-repeat; background-position: 0 0; } naja und dann halt wenn ich iwas im bereich eintippe geht das locker über dem rand hinaus =( |
Sponsored Links |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Simple Accordion und jQuery.ScrollTo gleichzeitig verwenden? | bleny87 | Javascript & Ajax | 3 | 24.05.2011 19:08 |
margin:0 auto; weiterer div-bereich zentrieren | seeadler | CSS | 7 | 14.07.2008 21:00 |
Zentrieren bei position:fixed | Alessia | CSS | 3 | 26.02.2008 14:33 |
Bild vertikal zentrieren in Blockelement in IE nur m. TABLE | AndreasB | CSS | 11 | 13.03.2006 17:05 |
Container horiz. + vert. zentrieren, 2 eingeschlossene ab... | Jessix | CSS | 4 | 10.07.2004 16:15 |