Click to See Complete Forum and Search --> : simple background image problem
oohblue
11-20-2004, 07:20 PM
I've only just started learning css, and i was writng the code.. you know where it says 'url'? and then (image.jpg)? well what do i put on the url bit? I've put everything fromt the http to the actualimage name but it won't work. Could someone help please?
Thanks :)
oohblue
charlesdavison
11-20-2004, 07:37 PM
This is how to lay out the code for backgrounds:
background-image: url(images/imagename.jpg);
You can also use http:// to point directly to the image, like this:
background-image: url(http://www.website.com/images/imagename.jpg);
Hope that helps
Ben Rogers
11-21-2004, 02:50 PM
For more information: <http://www.w3.org/TR/REC-CSS2/colors.html#background-properties>
redpop
04-06-2005, 10:41 PM
i to started learning to work with CSS. as simple as it may seem this was gold for me. who would of thunk that the url in url(image.jpg) wass actually the three letters url and all of the http stuff inside the ()'s. kinda makes sense since there is a : in http://www. which would be a problem. i also had background color set and when i deleted that success was had
this posting helped me alot thanks,
another beginner css'er :)