All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Trying to get a background image body and html

  • # May 3, 2013 at 2:11 am


    I am trying to get the body to have one background

    And HTML to have another.

    It is not the way I usually would do it but have no choice its to do with software I am using

    # May 3, 2013 at 2:48 am

    How do you force html image to show above body image?

    # May 3, 2013 at 4:17 am

    Not sure what it is you’re trying to accomplish but you need to have content to see the body background otherwise body height is 0 (or `html { height: 100%; } body { min-height: 100%; }`)

    What do you mean by html background above body background? You can give the body a top margin if I understand you correctly.

    # May 3, 2013 at 4:28 am

    >How do you force html image to show above body image?

    You can’t. The `body` is inside the `html`. Just reverse them if you need a particular order.

    # May 3, 2013 at 8:57 am

    I will try and re configure the systems layout see how I go do it over week end.

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed