PDA

View Full Version : Stretch the page width if the browser is wide enough



icklechurch
Feb 17th, 2010, 01:58 PM
Hi, I know there must be an easy solution to this but I can't find it!

Is there anyway to stretch a page's width if the browser is wide enough?

But still have a default width of, for example 1024px, so the page starts scrolling if the page width is less than 1024px?

Basically, just like on Amazon.com..

I'm not looking for the complete answer - just a nudge in the right direction :)

sim_pack
Feb 17th, 2010, 02:17 PM
try using the css width attribute and assigning a percentage value..
just a nudge..

abduraooft
Feb 17th, 2010, 02:50 PM
But still have a default width of, for example 1024px, so the page starts scrolling if the page width is less than 1024px? Make use of min-width (http://htmldog.com/reference/cssproperties/min-width)
PS: You'd need to hack it for IE.

sim_pack
Feb 18th, 2010, 02:03 PM
Make use of min-width (http://htmldog.com/reference/cssproperties/min-width)
PS: You'd need to hack it for IE.

don't you just love ie, lol..