PDA

View Full Version : Variable Width up to 1024x768...


ndisdabest
07-05-2007, 10:30 AM
Hi all --

I have a bit of an issue with something I need to do involving variable width. Perhaps it is more of a logic problem than a coding one, but I need somebody to talk to about it, and figured this would be the best place.

I'm currently pulling in an ASP include file -- a file I do not have access to -- as my header. That include file is designed to expand to 100% of the page; however, we're looking to mix and match some things, and I've discovered that I can control the width of it by putting DIV tags around it. That's the good news.

The issue is this, though... I can't fix the header at a certain width, because we'd like the ability for variable page widths up to 1024x768 resolution. In other words, if I lock it in at 1024, then people with 800x600 resolution will see a horizontal scrollbar. And we don't want that.

So, I guess my question is: How do I build a page with variable width up to and including 1024x768 resolution, but no more?

Any suggestions would be much appreciated!

Techie-ish
07-05-2007, 03:04 PM
your looking for javascript not html

RysChwith
07-05-2007, 04:31 PM
You can do it with the CSS property max-width, plus a hack for the laggard browser (http://www.svendtofte.com/code/max_width_in_ie/).

Rys