Grow your CSS skills. Land your dream job.

Wrapper Background

  • # May 3, 2013 at 2:14 pm

    Hey, I’m working on a css website and the wrapper doesn’t show me the background-image or color. It’s all blank. I’ve used the same code before and it somehow works..

    I want a wallpaper to cover the full width and height.. no scrolling required.

    Here’s the Pen:

    http://codepen.io/anon/pen/xehzi

    # May 3, 2013 at 2:24 pm

    you need to give the body and html a height of 100%. Their default heights are auto, so the #wrapper’s 100% height is 100% of the body which is only long enough to contain the children – in this case, nothing.

    you haven’t correctly closed the first link element.
    you’ve used css comments in the html – and they don’t belong inside a tag.
    don’t use old style attributes (on the body tag) – use css

    # May 3, 2013 at 2:26 pm

    Hey, thanks, this works only if I use a http link for the image.. I somehow can’t get it to work with the images stored on my comp. Any help with that?

    # May 3, 2013 at 2:32 pm

    Okay, thanks, it’s done.

    Thank you! :)

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".