[thelist] CSS max-width question.
Saila, Craig
thelist at lists.evolt.org
Mon Aug 12 12:59:14 2002
> -----Original Message-----
> From: Jonathan_A_McPherson@rl.gov
> [mailto:Jonathan_A_McPherson@rl.gov]
> become longer). I want the box to size to less than 800px if
> the browser window gets smaller (i.e. if the user doesn't
> like to browse fullscreen or has a lower-res display --
> 800x600, 640x480).
Best bet is JavaScript, unfortunately. I've worked up an example that
should work in IE 4+ using JavaScript and Gecko-based browsers using
max-width. Feel free to scalp.
<http://www.saila.com/usage/tips/examples/max-width.html>
Basically detects the page width, if its greater than 800 the container
is given a style of 800px, otherwise it's set to 100%.
> Any suggestions? I'm sure this is a common quandary..
Unfortunately, it is...
--
Cheers,
Craig Saila
------------------------------------------
craig@saila.com : http://www.saila.com/
------------------------------------------