Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Location
    The Stars
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post [Please Help] HTML/CSS Background Not Cooperating

    Hey guys, I have decided to re-write a website source I was working on because the first time I worked on it I had everything jumbled and it was very messed up. Now, I am having trouble getting the background image to show up or cooperate, if someone could get it to work, or tell me how that would be awesome. I am working on it in a realtime HTML/CSS editor, what I have so far can be found here

    Thanks guys,

    Any help would be greatly appreciated!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,678
    Thanks
    6
    Thanked 1,009 Times in 982 Posts
    What is this supposed to be?
    Code:
    <img id="background"</img>

  • #3
    New to the CF scene
    Join Date
    Aug 2012
    Location
    The Stars
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    What is this supposed to be?
    Code:
    <img id="background"</img>
    It is telling "<img>" tag to use the "#background" properties.

  • #4
    New Coder
    Join Date
    Jul 2012
    Posts
    62
    Thanks
    5
    Thanked 14 Times in 14 Posts
    Hey Ian,

    If you want a background that is behind all other objects, you don't require anything in your html accept for linking your CSS file.
    And your CSS assign the background image to the body.
    body {
    background-image: url(http://s19.postimage.org/3ztvq1ecj/posbg.png);
    background-repeat: repeat;
    background-position: center;
    }


  •  

    Posting Permissions

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