25
01/06
CSS – fluid vs. fixed Design
Everyone knows the problem: Webpages which have too much text on too small space or vica versa. The solution is either make the page fluid or fixed, and with the help of css this is pretty simple:
fixed
body {
margin: 0;
padding: 0;
background-color: #000;
color: #fff;
}
#page {
margin: 0 auto;
padding: 0;
width: 760px;
background: #fff;
}
click here for example Here the page never changes its size.
Try and change the size of the browser window.
fluid
body {
margin: 0;
padding: 0;
background-color: #000;
color: #fff;
}
#page {
margin: auto;
padding: 0;
width: 90%;
background: #fff;
}
click here for example Here the page always changes its size to fit to the resolution or browser window
Try and change the size of the browser window.
Roger
25/01/2006
22:14
See this site for more information about Css.
Gernot
27/01/2006
00:36
Thank you for the tip.
Good site, very good css tips but too much ads on the page, don’t you think.