Autor Beitrag
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 03.07.05 14:25 
Moin... ;)

Ich würde gerne eine Tabelle auf 100% der Seitenansicht bekommen. Beim Benutzen von...
ausblenden Quelltext
1:
<table height="100%" [...]					

...ist die Seite nicht valid.

Zitat:
Line 44, column 14: there is no attribute "HEIGHT"

<table height="100%" border="0" style="border-collapse: collapse" width="100%">

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.


Kennt jemand da eine Möglichkeit in HTML oder CSS? Danke schonmal... ;)

//EDIT: Ach ja...
Doctype: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 03.07.05 14:43 
So geht's bei mir:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>foo</title>
  </head>
  <body>
    <table style="width: 100%; height: 100%; border-style: solid; border-width: 1px">
      <tr><td>foo</td></tr>
    </table>
  </body>
</html>

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 03.07.05 15:33 
:gruebel:

Dabei war ich mir so sicher, dass ich <table style="height: 100% [...] schon ausprobiert hab...

Na, egal... ;) Danke!