simple background image problem

liunx

Guest
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 :)
oohblueThis 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(<!-- m --><a class="postlink" href="http://www.website.com/images/imagename.jpg">http://www.website.com/images/imagename.jpg</a><!-- m -->);


Hope that helpsFor more information: <http://www.w3.org/TR/REC-CSS2/colors.html#background-properties>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 <!-- m --><a class="postlink" href="http://www">http://www</a><!-- m -->. 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 :)
 
Back
Top