Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table resizes with window, but set maximum limit?

Status
Not open for further replies.

jacktripper

Programmer
Dec 5, 2001
124
US
I've got a web page with a series of tables set with a width="100%" in the HTML code so the tables will pretty much fill the screen at different window sizes.

But, when viewed on a larger wide-screen monitor, the pages look like crap. I'd really like a way to resize the windows just like before (by percentages) but have a way to cap the maximum width of the tables to something like 1024 pixels... so that on large monitors or high-resolutions, the tables stop expanding at a reasonable size.

It seems like this could maybe be done with javascript or ajax or maybe CSS... I don't know. Then again, maybe it can't be done?

Any ideas on how to do this? Or any one who has done it before?
 
Works like a charm. Just goes to show how much I know about CSS... Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top