Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Beginner: Header does not extend full page

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #184827
    rheeler
    Participant

    html {
    background: url(http://cdn.css-tricks.com/images/bkgrn2.png) no-repeat center center fixed;
    width: 100%;
    height: 100%;
    background-size: cover;
    body {
    width: 80%;
    height: 100%;
    background: rgba(255, 255, 255, 0.70) no-repeat;
    margin-top: 0;
    font: 100% Arial, Helvetica, sans-serif;
    /padding: 25px;/
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
    }

    header {
    background: url(http://cdn.css-tricks.com/images/edited/banner5.png);
    width: 100%;
    float: left;
    padding: 15px 0;
    height: 400px;
    margin: 0 auto;
    background-repeat: no-repeat;
    margin-top: 0;
    }

    #184836
    Paulie_D
    Member

    It might be easier if you make a Codepen.io example.

    Raw code usually isn’t much help

    #184841
    rheeler
    Participant

    Sorry. Codepen.io is a mystery to me. Lol. My objective is simply to have a background img (which I saved img from firefox) and was sized with paintshop pro to 2900 x 1280, 72px; (placed in html block) solid white background 80% of the width (placed in body tag) with a banner 100% of body. I may have just figured out since my header is 1290 px wide. Thank you so much for your consideration.

    #184844
    rheeler
    Participant

    solved

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.