Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    4
    Member #
    31962
    I'm creating a page design that has four separate background images (shown here). One for the paper fold header, one for the main body, one for a content divider, and one for the footer.

    You can see each background image being slightly in misalignment. The shifting doesn't seem to change when resizing the page. Here is the basic page structure:

    HTML Code:
    <body>
    
    <header>
    <nav>
    </nav>
    </header>
    
    <div id="container">
    </div>
    
    <div id="servicespage">
    <div container>
    </div>
    </div>
    
    <footer>
    <div id="directory">
    </div>
    </footer>
    
    </body>
    Here is the relevant CSS:

    Code:
    body {
        background-color:#E2EEF3;
        background-image:url(../images/bg.png);
        background-position:center;
        background-repeat:repeat-y;
        margin: 0px auto;
    }
     
    header {
    height:280px;
    background-image:url(../images/header/bg.png);
    background-repeat:no-repeat;
    background-position:center;
    }
     
    #servicespage {
    margin:0px auto;
    padding:50px;
    background-image:url(../images/page-bg.jpg);
    background-position:center top;
    background-repeat:no-repeat;
    }
     
    footer {
    width:1111px;
    height:250px;
    margin:90px auto 0px;
    background-image:url(../images/footer/bg.png);
    color:#7d7d7d;
    position:relative;
    }
    If you need any more info please ask! Thank you so much for your help!

    Eric

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Set widths for your header and servicespage div explicitly. That may solve your problem.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    4
    Member #
    31962
    Thanks for the response, but that didn't work. Exact some problem. Any more suggestions?

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Let's see the page?
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Junior Member
    Join Date
    Jun 2012
    Posts
    4
    Member #
    31962
    http://dragonguru.com/services.php

    Password is: burningfire

  7. #6
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    This seems to work for the center line under the images of the three people, main.css line 399:
    (changes are bolded)

    #servicespage {
    margin-top: 0;
    padding: 50px;
    background-image: url(../images/page-bg.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    margin-bottom: 0;
    margin-right: 3px;
    }

    and for the footer try this on line 204:
    footer {
    width: 1111px;
    height: 250px;
    margin: 90px 0 0 220px;
    background-image: url(../images/footer/bg.png);
    color: #7D7D7D;
    position: relative;
    float: left;
    }

    These work in Chrome, but I haven't tried it in any other browsers...
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  8. #7
    Junior Member
    Join Date
    Jun 2012
    Posts
    4
    Member #
    31962
    Thanks for the response! The body background image was off center, and some tweaks to the code fixed it:

    Code:
    #servicespage {
        margin: 0 1px 0 0;
        padding: 50px;
        background-image: url(../images/page-bg.jpg);
        background-position: center top;
        background-repeat: no-repeat;
    }
    
    footer {
        width:1111px;
        height:250px;
        margin:90px auto 0px;
        background-image:url(../images/footer/bg.png);
        color:#7d7d7d;
        position:relative;
    }
    Thanks again everybody

  9. #8
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Glad you got it done, and thanks for sharing the fix! It may be of help to others.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  10. #9
    Member smedz28's Avatar
    Join Date
    Jul 2011
    Location
    Scotland, UK
    Posts
    41
    Member #
    28612
    Liked
    3 times
    I just had a look at your page and there still seems to be an issue where your navigation is being pushed down on the right and the as a result the content in your "container" div is being pushed to the left


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:20 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com