SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    USA
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Background image is not repeating the length of the page ...

    The background image doesn't repeat all the way down the page if there is a lot of content. Can someone recommend a fix?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="ISO-8859-1">
        <meta http-equiv="content-language" content="en"/>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <title></title>
        <style type="text/css">
            body {
                background-color: #777;
                height: 100% !important;
                margin: 0px;
                padding: 0px;
                width: 100%;
            }
            html, body { height: 100%; }
            #wrapper {
                background: white url(http://www.hotelroanoke.com/bg=wrapper2.png) !important;
                background-repeat: repeat-y;
                height: 100% !important;
                margin: auto;
                min-height: 100% !important;
                padding: 0px 30px;
                width: 772px;
            }
            #content {
                background-color: white;
                padding: 16px 21px;
                width: 730px;
                float: left;
                margin: 0;
            }
        </style>
    </head>
    <body>
        <div id="wrapper">
            <div id="content">
                <img src="images/spacer.gif" width="1" height="5000" alt="" />
            </div>
        </div>
    </body>
    </html>

  2. #2
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this


    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-language" content="en"/>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <title></title>
        <style type="text/css">
            body {
                background-color: #777;
                margin: 0;
                padding: 0;
            }
            #wrapper {
                background: white url(http://www.hotelroanoke.com/bg=wrapper2.png) !important;
                background-repeat: repeat-y;
                margin: auto;
                padding: 0 30px;
                width: 772px;
            }
            #content {
                background-color: white;
                padding: 16px 21px;
                width: 730px;
                margin: 0;
            }
        </style>
    </head>
    <body>
        <div id="wrapper">
            <div id="content">
                <img src="images/spacer.gif" width="1" height="5000" alt="" />
            </div>
        </div>
    </body>
    </html>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •