SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Location
    UK
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Background Image no Repeat

    I have tried placing a background on my page using HTML, the image shows up but repeats so I am trying to put a code into my css file but then the image doesnt show up at all, can anyone help please?

    this is my css code

    body {background-image: url(http://www.blitz-it.co.uk/background.jpg); background-repeat: no-repeat;}

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,379
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    I assumes the image exists because that url gives a 404.

    Otherwise your code should be working as far as I can see although you could use shorthand to make it more concise:

    Code:
    body{
    background: url(background.jpg) no-repeat;}
    }

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,208
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    It seems to be working now anyway: http://www.blitz-it.co.uk/

  4. #4
    SitePoint Enthusiast
    Join Date
    May 2006
    Location
    UK
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you yes it is working now, thank for your help


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
  •