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
    Apr 2008
    Posts
    7
    Member #
    16668
    Howdy Folks, Having a bit of trouble figuring out how to stop background image wrapping. I'd like to let the background image remain the same without the loop. The site in question is located at: http://www.kyleadkinswebdesign.com/Sanibel/test.html If anyone could push me in the right direction, I'd greatly appreciate it!

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    <div style="background: url('/path'/to/your/image.jpg') no-repeat left top;">

  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    What Steven said.

    no-repeat keeps your background from repeating at all.
    repeat-x keeps your background from repeating vertically.
    repeat-y keeps the background from repeating horizontally.

    For your purposes, either no-repeat or repeat-x wil do.
    KyleAdkins likes this.
    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)

  5. #4
    Junior Member
    Join Date
    Apr 2008
    Posts
    7
    Member #
    16668
    Thanks for the replies guys. I have tried using both suggestions, however I come up with an entirely new issue. The page itself replicates the image in the background (To be expected), then I try to remove the CSS code for the image wrap and the entire page breaks. I cannot seem to find a suitable way of taking the information from the wrap command and using it to re-align the site to it's previous dimensions without breaking or looping the background image. The short of it: I seem to have dug myself into a huge hole I cannot figure out how to escape from.

    Any suggestions on how to proceed from here? I would greatly appreciate it guys.

  6. #5
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Which image is it you're having trouble with? If it is the one with the beach and "My Sanibel Condo", when you say you do not want it to wrap, do you mean you only want it at the top behind the menu and not at the bottom as well?
    KyleAdkins likes this.
    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!

  7. #6
    Junior Member
    Join Date
    Apr 2008
    Posts
    7
    Member #
    16668
    Correct. I would only like to see it at the top, not the bottom!

    P.S. The image in question is called "bg.jpg", the exact one you mentioned. I hope that helps.

  8. #7
    Senior Member LeenkzMike's Avatar
    Join Date
    Jan 2011
    Location
    Toe-Peek-ah, Kansas
    Posts
    608
    Member #
    26365
    Liked
    80 times
    Thats odd, I guess I do not understand how an image can show up top, then repeat all the way at the bottom of the page, without you putting it there. I would like to see the answer to this as well.
    Peace, Mike
    WebHost1-For all your Hosting needs.
    Leenkz.Com-The web starts here! (Blatant use of tables)
    I realllllly need to feel useful, please "like" my signatures!!!! (Button is on the bottom right!)

  9. #8
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    OK - you have the image in your CSS in the "wrap" div.
    Try instead putting it in the header div in your CSS like this
    Code:
    #header {
    background: url("images/bg.jpg") repeat scroll 0 0 transparent;
    height: 260px;
    position: relative;
    }
    That will stop it from repeating at the bottom of the page.
    KyleAdkins likes this.
    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
    Junior Member
    Join Date
    Apr 2008
    Posts
    7
    Member #
    16668
    Thank you for the help! It fixed the wrapping. Now I have a slightly different problem, my two "float" containers want to float to the extreme left or right, breaking up the page a little bit. Going to try to fix this issue on my own, and I appreciate the help you guys have given me. Repping each of ya up!

    Edit: Fixed the issue. Set the width to 1000px to match the header, everything is smooth sailing. Much appreciated!


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
  •  

Search tags for this page

background image not wrapping

,

how to stop background wrapping

,

html stop image wrapping

Click on a term to search for related topics.
All times are GMT -6. The time now is 04:57 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com