|
|||
![]()
Hallo,
ich möchte per CSS einen Rahmen um ein Bild definieren. Der Rahmen soll einen Abstand von 4px zum Bild haben. Folgender Code funktioniert zwar im Firefox, nicht aber im IE - hier wird der Rahmen direkt um das Bild gezeigt, ohne Abstand. (IE nicht im Quirks Mode) Code:
div#header_fotos img { border: 1px solid #CCC; padding: 4px; } |
Sponsored Links |
|
|||
![]() Zitat:
Zeig mal den kompletten Code, bei mir klappt das so im IE im Standartmodus ![]()
__________________
>> Linux is like a wigwam: no windows, no Gates, Apache inside. << |
Sponsored Links |
|
|||
![]()
Der Doctype ist wie folgt angegeben:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> Code:
<div id="logo">[img]images/logo_glashaus.gif[/img]</div> |
|
|||
![]()
cool, das klappt, danke für Deine Hilfe!
Nun hab ich aber noch ein anderes Problem, was vorher nur im FF auftrat, jetzt aber auch (ohne das <?xml... ?>) im IE... vielleicht hast Du dafür auch ne Lösung? Dann wären meine Probleme ...vorerst... beseitigt ![]() Ich will ein Feld mit einer height von 100% haben, unabhängig vom Inhalt... es geht aber immer nur soweit wie der Content reicht. Im Quirks Mode funktionierte das so im IE wie gesagt, aber nicht im FF - nun auch nicht mehr im IE. Hab das Problem mal in eine einzelne Datei ausgelagert: Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <title></title> <style type="text/css"> body { margin: 0; padding: 20px 0 0 0; background-color: #E1E1E1; } * html body { width: 100%; text-align: center; overflow: hidden; } div#page_box { width: 788px; height: 100%; text-align: left; margin: 0px auto 0px auto; padding-top: 1px; background-color: #00495A; } #content { width: 100%; margin: 30px; font-family: Verdana; color: #FFF; } </style> </head> <body> <div id="page_box"> <div id="content"> Hier Content. Das grüne Feld soll immer bis ganz unten gehen, egal wieviel Content hier drin steht! </div> </div> </body> </html> |
|
|||
![]()
VIELEN DANK!!!!!!!
Damit ist nicht nur mein Problem für das aktuelle Projekt gelöst, sondern auch für diverse andere, bei denen ich immer das gleiche Problem hatte!! ...min-height... da hätt ich ja auch mal drauf kommen können... Also danke danke danke! Gruss, Christine |
|
|||
![]()
Hallo Heiko,
... ähem ... nochmal ich... vielleicht kannst Du mir nochmal helfen ... ![]() Habe diese zweite Box genauso angegeben wie die äussere mit min-height: 100% ... die innere geht jetzt aber trotzdem nicht bis ganz runter... (im folgenden Code ist nur das div #main_box dazugekommen) Gruss, Christine Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <title>Höhenproblem Firefox</title> <style type="text/css"> html, body { height: 100%; margin: 0; padding: 20px 0 0 0; background-color: #E1E1E1; } * html body { width: 100%; text-align: center; overflow: hidden; } div#page_box { width: 788px; min-height: 100%; text-align: left; margin: 0px auto 0px auto; padding-top: 1px; background-color: #00495A; } * html #page_box { height: 100%; } div#main_box { width: 770px; min-height: 100%; margin: 7px 8px 0 8px; border-top: 1px solid #CCC; border-left: 1px solid #CCC; border-right: 1px solid #CCC; } * html div#main_box { height: 100%; } #content { width: 100%; margin: 30px; font-family: Verdana; color: #FFF; } </style> </head> <body> <div id="page_box"> <div id="main_box"> <div id="content"> Hier Content. Das innere div mit dem grauen Rahmen soll ebenfalls immer bis ganz unten gehen... Tut's im IE, aber nicht im Firefox... </div> </div> </div> </body> </html> |
Sponsored Links |
![]() |
Themen-Optionen | |
Ansicht | |
|
|
![]() |
||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Bild mit CSS in quadratischen Rahmen einpassen / skalieren | Gin-San | CSS | 2 | 07.01.2014 00:49 |
Bild mit Rahmen aus Bild | Holger (HMR) | CSS | 3 | 21.05.2008 13:55 |
IE7- & IE6-Probleme bei Bild und Rahmen... | Ragnaroek | CSS | 2 | 21.04.2008 16:02 |
Verflixter Rahmen um ein Bild | Webelix | CSS | 6 | 22.07.2007 13:32 |
Rahmen um ein Bild (jpg, png, gif) ziehen | Don Stefano | CSS | 8 | 30.07.2005 22:42 |