The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS please help the beginner!!!

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #38423

    Please explain when and why do we use height: 100%. Please give some examples. Thanks


    Wow…you don’t want much do you?

    Basically, 100% height will force the block element to expand to fill the available vertical space available to it regardless of the content.

    It’s useful for making ‘full screen’ web pages, you know the ones where the footer isn’t halfway up the screen. There are other uses but did you have a more specific question?

    I really don’t use it unless I have to…and I don’t have to often.


    So … does that mean you could use height:100% to resolve issues with the 2 column layout? Just set both columns to height:100% and they’ll stretch to fill the parent wrapper, yeah?

    It makes sense in my head, but it can’t possibly be that simple … can it?

    – Mark


    Thank you very much guys, appreciate your help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.