Sent by Climis, Tim on 2 December 2009 15:03
> could someone give me advice as to how to resize my website automatically to fit the browser
window?
Right now you're sizing all your divs in pixels. That means that they will always be that size, no
matter how small the browser is.
There are other options for sizing that will take this limitation away. Setting sizes in ems will
set the size in relation to the font-size (1em = current font size). Setting sizes in percents will
size something according to its parent container.
So for example, you're the parent of #indexjacket is body (which is the window). You can set this
rule:
#indexjacket {
width: 80%;
max-width: 990px;
min-width: 300px;
}
That means that it will be 80% of the window width, but if 80% is bigger than 990px, it'll stop
growing, and if 80% is less than 300px, then it'll stop shrinking.
---Tim
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/