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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with div 100% when horizontal scroll appears

    Hey guys,
    I have looked for a solution to this, but have not found it.

    Basically, i have a header(div) with a fixed height and a 100% width. The div works fine when all of the maincontent fits in the browser window, but when the horizontal scroll bar appears when resizing, the div does not extend the entire width of the page. Help is much appreciated. Thanks!

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    All block level elements stretch automatically to the 100% width of its container. So you don't need to explicitly specify the width to it.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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