Forum Moderators: not2easy

Message Too Old, No Replies

height = 100% or full screened

height = 100% or full screened

         

LetItBe

2:16 pm on May 5, 2006 (gmt 0)

10+ Year Member



hey there

i'm coding a site which is totally based on css. but i have a problem.
site needs to be 100% in width. no problems, in css i just set it:

...
width: 100%;
...

secondly, i need to have it in full (100%) height and i set it:

...
height: 100%;
...

but here we go - it doesn't work. why? how can i set the height in full view on browser? you see, i can set it in pixels for example 700px (on resolution 1024*768) but what if the resolution of visitor is 1600*1200? then the view of the site is ugly!

have any ideas?

thanks, guys!

Fotiman

6:41 pm on May 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Perhaps something like this:

html, body
{
margin: 0;
padding: 0;
height: 100%;
}

LetItBe

9:35 am on May 7, 2006 (gmt 0)

10+ Year Member



Thanks! It works.