tabellenhöhe 100% bei mozilla/opera
andi
- html
0 andi
habe mir schon beiträge zu o.g. thema durchgelesen, leider funktioniert der ansatz bei mir nicht. wenn ich in einer neuen datei height="100%" bzw style="height:100%" definiere, dann funktioniert das. leider habe ich aber nun eine seite mit etwas mehr css - inhalt ist eine seite, bei der der obere teil beim scrollen stehen bleibt (aussehen wie bei frames).
ich werde mir mal die freiheit nehmen, den wichtigen teil des css zu posten:
/*-----------------------------------*/
html {
margin:0;
padding:0;
height: 100%;}
body {
margin:145px 0px 0px 0px; /*body-abstand von OK bildschirm*/
height:100%;
padding:0px;
background:white;}
table {
height: 100%}
#fix { /*fixed headline*/
width:800px;
margin:0;
padding:0;
position:fixed;top:0px;left:0px;
background-color:#ffffff;}
#fix a { /*linkboxen headline*/
font:12px verdana, sans-serif;
color:black;
text-decoration:none;}
#fix a:hover {
font:bold 12px/normal verdana, sans-serif;
color:#0088e8;
}
#fix p {
padding:8px;margin:0;}
#box div { /*inhaltesfeld*/
margin:0px;
position:static;
height:100%;
background:white;}
/*-----------------------------------*/
der tabellenaufruf sieht so aus:
<table width="779" height="100%" border="1" cellspacing="0" cellpadding="0">
leider stellen firebird und opera die tabelle nur so lang (hoch) dar, wie inhalt da ist. kann mir bitte jemand einen tip geben?
danke, andi
hey junx,
hab gerade bei mozilla gelesen wie's geht:
im body - style muss
'position: absolute;'
rein.
siehe auch http://bugzilla.mozilla.org/show_bug.cgi?id=69479http://bugzilla.mozilla.org/show_bug.cgi?id=69479
andi