![]() |
#1
|
||||
|
||||
Weblayout mit CSS
Ich habe folgende Datei mit css "befehlen" geschrieben und möchte nun 2 Dinge ändern und bin mir nicht sicher wie:
1. Rechts vom gelben content einen Rand von 10 Pixel machen 2. Den pinken Footer nach ganz unten fix machen Hier das Bild vom bisherigen Ergebnis: ![]() Hier der CSS-Teil: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Unbenanntes Dokument</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css" media="screen"> body { font: arial, verdana, sans-serif; text-align: center; color: black; background-color: CCCCFF; } #container { margin: 1em auto; width: 800px; height: 600px; text-align: left; background-color: red; border: 1px solid black; } #header { margin: 0em auto; width: 800px; height: 100px; text-align: left; background-color: blue; border: 1px solid black; } #contents { margin-right: 10px; margin-left: 10px; margin: -25em auto; float: right; width: 530px; height: 400px; text-align: left; background-color: yellow; border: none; } #menu { margin-left: 10px; width: 250px; height: 400px; text-align: left; background-color: green; border: none; } #footer { clear: both; width: 800px; height: 20px; background-color: pink; } </style> </head> <body> <div id="container"> <div id="header"></div> <div id="menu"></div> <div id="contents"></div> <div id="footer"></div> </div> <!-- /container --> </body> </html> Danke schon im Voraus für die Tipps.
__________________
Beim Spiel kann man einen Menschen in einer Stunde besser kennen lernen, als im Gespräch während eines Jahres. |
Lesezeichen |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|
![]() |
||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
![]() |
skyflyer | Hilfestellung, Tipps und Tricks | 5 | 31.01.11 20:47 |