dimitar Posted November 18, 2007 Share Posted November 18, 2007 I tried like this background-image:url(/background.jpg);and this background-image:url(background.jpg);doesent want to work Link to comment Share on other sites More sharing options...
Ingolme Posted November 18, 2007 Share Posted November 18, 2007 You need to write the path of the background image file./background.jpg means the file is in the top level.background.jpg means that the file is in the same folder as the page that's loading it. Link to comment Share on other sites More sharing options...
Synook Posted November 19, 2007 Share Posted November 19, 2007 Where is that image located? Link to comment Share on other sites More sharing options...
dimitar Posted November 19, 2007 Author Share Posted November 19, 2007 In the same folder. Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted November 19, 2007 Share Posted November 19, 2007 So therefore: background-image: url('background.jpg'); Oh and remember to either name the background background.jpg or change the name of the file referred to in the CSS. Link to comment Share on other sites More sharing options...
Synook Posted November 20, 2007 Share Posted November 20, 2007 Btw you don't need quotes unless the filename has spaces in it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.