Chris McIlroy Posted May 26, 2009 Share Posted May 26, 2009 Hi, I am just working my way through the CSS tutorial, I have a successful external style sheet and can change background colors etc, but cant seem to insert a background image. here is the codebody {color:sienna}p {margin-left:60px}background-image:url('C:\Documents and Settings\Evil Chris\My Documents\My Pictures\Works in progress\link.jpg')BTW the code box didn't work in this post. Anyway the image in question is called "link.jpg" I tried it without all the other documents and settings etc, maybe I should not have used a \ between the progress and the link.excuse my ignorance. Thanks. Link to comment Share on other sites More sharing options...
Ingolme Posted May 26, 2009 Share Posted May 26, 2009 You must put the background-image property inside one of the blocks, and try appending file:/// before the URL. body { background-image:url('file:///C:\Documents and Settings\Evil Chris\My Documents\My Pictures\Works in progress\link.jpg');} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.