|
|||
Problem mit der Höhe eines DIV
Code:
@CHARSET "ISO-8859-1"; * { margin: 0; padding: 0; } body { font-family:Arial, Helvetica;} .block1 { background-repeat:no-repeat; width:200px; min-height:200px; position:relative; left:10px; top:0px; background-color:#404040; margin-bottom:20px; padding:0px; color:white;} .block1 label { position:relative; top:10px; left:10px; right:10px; font-size:2.0em; color:#D77A0C; color:#303030; text-shadow: -1px -1px 0px #101010, 1px 1px 0px #505050;} .block1 img { position:relative; top:12px; background-image: url (/images/trenner.png);} .block1 text { position:relative; top:12px; left:10px; right:10px;} HTML-Code:
<div class="block1"><label>Exklusive Neuigkeiten</label> <img src="images/trenner.png"></img></div> <div class="block1"><label>Exklusive Neuigkeiten über Europa und Deutschland</label> <img src="images/trenner.png"></img><text>Dies ist Text</text></div> Im obigen Code definiere ich eine Klasse Block 1. Leider bleibt diese Box immer nur 200px hoch. Auch wenn ich min-height herausnehme. Komisch erscheint mir auch, dass wenn ich min-width:200px; setze, dass er die weite auf 100% setzt??? Kann mich da einer supporten? |
Sponsored Links |
|
|||
Bitte lies und beachte die Hinweise für Fragende.
Für Codebausätze hat kaum jemand Zeit.
__________________
Corina Rudel Online-Einsteigerkurs HTML/CSS | Buch: Fortgeschrittene CSS-Techniken |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Brauche Hilfe: Schwarzes Nichts | Zwox | CSS | 10 | 19.11.2010 16:53 |
CSS Text nebeinander? | carstiee09 | CSS | 13 | 13.11.2009 19:18 |
Div / Css Problem ( height / höhe ) | bl4ck | CSS | 9 | 04.06.2009 18:57 |
Absoluter Div mit 100% Höhe wird am Vieport abgeschnitten | tramper | CSS | 10 | 14.04.2009 23:03 |
DIV 100% Höhe IE6 Problem | pixelpole | CSS | 3 | 04.01.2007 12:56 |