Thread: XHTML sucks
View Single Post
Old 10-29-2006, 10:44 AM  
jayeff
Confirmed User
 
Join Date: May 2001
Posts: 2,944
Quote:
Originally Posted by TeenGodFather View Post
Well, it doesn't work then.
OR, let me know how I can make a table span the length of a screen regardless of the resolution. If you can't tell me that, then CSS+XHTML is lacking.
Misunderstanding #1:
In terms of what your browser does with the code, XHTML is treated exactly the same as plain HTML, so a problem you are having in XHTML will not go away simply because you switch to HTML. If a switch to HTML appeared to cure it, you made some other change too or perhaps changed something else when you switched doctypes.

Misunderstanding #2:
Height works perfectly well, but if you quote a height as a %age, logic should have you asking "100% of what?". That's what a browser asks when it comes upon your instruction, so if the block you want to be 100% of something does not sit inside another block, not unreasonably, browsers treat the viewport (ie the visible area of the screen) as the container.

Anyway, whether that question occurred to you or not, the answer to it provides the basis for the various solutions people have already pointed you to.

Last edited by jayeff; 10-29-2006 at 10:45 AM..
jayeff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote