Grow your CSS skills. Land your dream job.

Trying to get a background image body and html

  • # May 3, 2013 at 2:11 am

    Hello

    I am trying to get the body to have one background

    And HTML to have another.

    http://codepen.io/mwbcomputers/pen/kEeoq

    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.

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