WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   HTML - Tabellenhöhe (http://www.wcm.at/forum/showthread.php?t=65413)

sagi 05.08.2002 14:58

HTML - Tabellenhöhe
 
hi,

wie kann man bei einer Tabelle die Höhe auf 100% setzen. Browser geben sich ja mit <table height="100%"> zufrieden. Das W3C nicht :(

Was kann man da dagegen machen :confused:

thx

mfg

c.

snowman 05.08.2002 15:10

machs über den umweg einer tabellenzelle (td). das ist w3c-konform, allerdings nur mit transitional, frameset; nicht bei strict.

gruss,
snowman

_m3 05.08.2002 15:10

1) Der Mozilla ignoriert das "100%" - es gibt noch andere Browser, als den IE ;)

2)
Zitat:

CSS2 does not specify rendering when the specified table height differs from the content height, in particular whether content height should override specified height; if it doesn't, how extra space should be distributed among rows that add up to less than the specified table height;
http://www.w3.org/TR/REC-CSS2/tables.html#height-layout

_m3 05.08.2002 15:13

Zitat:

Original geschrieben von snowman
machs über den umweg einer tabellenzelle (td). das ist w3c-konform, allerdings nur mit transitional, frameset; nicht bei strict.

gruss,
snowman

Macht er nicht:
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Table Height Test</title>
</head>
<body>
<table border="1" style="width:100%" >
<tr>
        <td>hi</td>
        <td>ho</td>
</tr>
<tr>
        <td>let's</td>
        <td>go!</td>
</tr>
<tr>
        <td colspan="2" style="height="100%">XXX</td>
</tr>
</table>

</body>
</html>

http://www.leyrer.priv.at/leyrer/wcm/tabelle01.png

sagi 05.08.2002 15:18

genau.

und meine Seite sollte in alle Browser einwandfrei funktionieren. Daher halte ich mich eher an Strict.

mfg

c.


Alle Zeitangaben in WEZ +2. Es ist jetzt 03:12 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag