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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Posts
    128
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Setting the height of a division

    Hi all,

    I have a problem with CSS. I have a top menu division on my page which must have 50 px height. Under that div, there's the left menu division which must have 100% height of the rest of the page.

    So here's my problem:
    Top menu division is 50 px. I set my html and body heights to 100% with CSS. I want the left menu section to cover the rest of the page height. But when I set the left menu division height to 100%, height becomes page height + 50 px height of the menu.

    Is there a way to fix this?

    Thanks
    telmessos
    Last edited by telmessos; 12-27-2010 at 02:04 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    Is there a way to fix this?
    I think you are after a faux column layout.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,668
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello telmessos,
    See if this full height layout can be adapted to your purpose.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    Regular Coder
    Join Date
    Apr 2006
    Posts
    128
    Thanks
    6
    Thanked 0 Times in 0 Posts
    thanks guys. it really helped


  •  

    Posting Permissions

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