Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthoranand1244
    • CommentTimeSep 29th 2008
     permalink
    Hi Buddies

    I have a problem in xhtml that If I want to make my webpage as per screen size in height, then height:100% and Height:auto; not working.

    #wrapper{
    height:100%;
    }

    #wrapper{
    height:auto;
    }

    not working please suggest me what to do
    • CommentAuthorJaneck
    • CommentTimeSep 29th 2008
     permalink
    Well, I'm a little confused, if you are typing both, then auto will preside over 100%. If you want the height 100%, it's only possible with a parent having a fixed height. 100% is not a fixed height. Now if i remember correctly, you need to set body,html {height:100%;} for a div inside to be set 100%. Now that hasn't worked for me always in all browsers, besides that I'm not sure.
    • CommentAuthorgogogob
    • CommentTimeSep 30th 2008
     permalink
    Make sure that that the elements are within sized containers.
    <style>html,body{height:100%}</style>
    Voila!
Add your comments
    Username Password
  • Format comments as (Help)