Saturday, March 31, 2012

Setting minimum web width

Hi, I have a problem setting minimum width for my page. What i want to do is set like >800px width. When somebody makes it's browser smaller then 800px?page should enforce scroling (just like it works here at asp.net).

When i set web size to 800px it's exactly 800px no matter what's browser size :/

Anybody knows how to do it?

If you're wanting the browser size to be the size of the screen viewing it, check here, in the Tips & Tricks section ofASPNet101.com:
http://aspnet101.com/aspnet101/tips.aspx?id=133

if not, explain with a little more detail


Try setting the CSS min-width value. The CSS for this site is:

#wrapper {background:url(../images/bg_wrapper.gif) repeat-x;width:100%;min-width:957px;}

The problem with this is that it's not fully supported in IE, seehttp://www.quirksmode.org/css/contents.html for more detals.

Hope that helps.

Aaron


Yeap, that's it :)

Thank you very much!

0 comments:

Post a Comment