PDA

View Full Version : Table Question


boggly
06-03-2003, 01:06 PM
This is kind of hard to explain, but basically I was wondering if it's possible to create a table that's say 995 pixels and then enclose another table inside that one that adjusts relative to the viewer's browser, but never exceeds 995 pixels? I would have to guess no, but thought I'd ask nonetheless.

realisis
06-03-2003, 03:09 PM
by coincidence this issue was touched on in another thread (but in a different context).

One way is to declare

style ="max-width:995px"

inside the tag. No need to nest tables. However, note that not all browsers support this attribute...

...

Btw, if the page is intended for a website, and you're targetting a width of 995px, a lot of your viewers will likely be limited to 800x600 anyway - making assumptions about your visitors' monitor size/resolution can backfire on you! ;)

boggly
06-04-2003, 06:03 AM
Is that attribute only supported by IE and NS 6 and above?

meow
06-04-2003, 06:20 AM
You wish! :D

It's not supported by any version of IE Win. Think most other modern browsers get it. Alas, that doesn't help much.

boggly
06-05-2003, 05:26 PM
It's always somthing... Thanks anyways I guess.