Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2011
    Location
    Slovenia
    Posts
    38
    Thanks
    4
    Thanked 0 Times in 0 Posts

    div 100% height?

    Hey!
    I want to make divs as high as the page (depends on what page you're on, so it can't be fixed).
    Here is how the divs are aligned:


    I googled but couldn't find the right answers hope someone here can help!

    have a nice day

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    The downside to div layouts is that you can't really do the 100% height routine with them. People have devised ways around it, but probably the simplest and most common method is something called "faux columns."

    Search the forum and/or Google and you will find samples and tutorials to explain the idea.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #3
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    http://ryanfait.com/resources/footer...ottom-of-page/

    you can use this for your content


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •