Log in

View Full Version : table width



annies44
04-21-2006, 12:35 PM
What table size would I have to use to build web pages and to have the page fill up most of the users computer screen without them having to scroll side to side no matter what screen size or resolution they are using? Is that possible?

Thanks
Annie

NXArmada
04-21-2006, 02:56 PM
width="100%"

Twey
04-21-2006, 03:20 PM
style="width:100%;"

djr33
04-23-2006, 05:25 AM
Ok, Twey... explain.

Is there actually some new thing out there claiming that the style attribute is better than the width one?

//puzzled.

:)

Twey
04-23-2006, 10:53 AM
Yes, it's called XHTML :p
Whether or not you're a fan of it, style="width:100%;" works in HTML too, so there's no real downside to using it, whereas the width attribute no longer exists in the XHTML standards. Plus it helps seperate content from style, which is the whole purpose of CSS. Of course, ideally, one would use an external stylesheet.

djr33
04-23-2006, 08:35 PM
Ah, ok. Haven't used xml myself. Makes sense.