Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member Jimmy Jones's Avatar
    Join Date
    Oct 2012
    Location
    Waxahachie, Texas
    Posts
    20
    Member #
    33137
    Liked
    2 times
    I'm trying to create a site with a full screen background image, and with a 300px wide strip on the left side of the sceen 100% height. For some reason, it's not extending 100%. It only extends as low as the content that fills it.

    When I make 100%width divs they work fine, but not 100% height....What the heck?

    I've tried clear fix, and also wrapping the page in a 100% x 100% wrapper. Nothing seems to work. I'm sure it's something stupid that I'm overlooking.

    Here's my css for the div i want on the left side:
    #left {
    width: 300px;
    height: 100%;
    background:url(blackback.png);
    float: left;
    margin-left: 30px;
    }

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    You're not missing anything. It won't matter what you do...divs don't extend to 100% height by default. Now, if you want a full-screen background image, you can do this:

    http://css-tricks.com/perfect-full-p...kground-image/

    The CSS3 one would work best, although you'd need some form of a hack for IE8 and lower such as the html5 shiv.

    The other option you have is simply to put the background in the body. That will extend full height.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member Jimmy Jones's Avatar
    Join Date
    Oct 2012
    Location
    Waxahachie, Texas
    Posts
    20
    Member #
    33137
    Liked
    2 times
    I'm actually using the css method from that link you posted. That's a great resource! I didn't think about using the html5shiv, good idea.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:37 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com