I'm trying to display a background image. On my pc this isn't a problem, when I upload the CSS to the server the image doesn't want to display.
#content-middle { padding: 0 25px 25px; background: url(../images/wallpaper.jpg) ; }
I'm trying to display a background image. On my pc this isn't a problem, when I upload the CSS to the server the image doesn't want to display.
#content-middle { padding: 0 25px 25px; background: url(../images/wallpaper.jpg) ; }
It's working fine here (your site)
~Callum
I can customise your phpBB board. Send me a PM.
lynxphp - info, tutorials and scripts
"A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."
Wrong Category, moving to programming help
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
you could try using a complete path so rather than
you could useCode:#content-middle { padding: 0 25px 25px; background: url(../images/wallpaper.jpg) ; }
your code assumes that the images directory is a level up from your site, so in order for your page to display correctly all html files must exist in www.example.com/site/Code:#content-middle { padding: 0 25px 25px; background: url(http://www.example.com/images/wallpaper.jpg) ; }
using my example means that it doesn't matter where the index.html is...even if the image is on a different server.
hope this helps
This site is located at http://euphoriaspa.x10hosting.com/. The image is present and the CSS indicates that. I've also tested on another computer and with Opera which does the same thing.
Last edited by rocky.mcarthur41; 06-07-2010 at 03:02 AM.
The image doesn't seem to be present. It is currently looking for http://euphoriaspa.x10hosting.com/images/wallpaper.jpg, which isn't uploaded.
It looks like you should link it to http://euphoriaspa.x10hosting.com/im...ontent-top.gif
Last edited by lemon-tree; 06-07-2010 at 06:24 AM.