delk114 Posted March 12, 2009 Share Posted March 12, 2009 <style type="text/css"> background-image: url("http://domain.com/bluebackground.jpg"); background-repeat: no-repeat; width: 550px; </style> Why wouldn't that work?? How can I fix it? (ignore the domain used, its the idea) Link to comment https://forums.phpfreaks.com/topic/149049-whats-wrong-with-this-css/ Share on other sites More sharing options...
haku Posted March 12, 2009 Share Posted March 12, 2009 Remove the quotes from the URL Link to comment https://forums.phpfreaks.com/topic/149049-whats-wrong-with-this-css/#findComment-782749 Share on other sites More sharing options...
POG1 Posted March 12, 2009 Share Posted March 12, 2009 Try single quotes for the URL Link to comment https://forums.phpfreaks.com/topic/149049-whats-wrong-with-this-css/#findComment-783335 Share on other sites More sharing options...
haku Posted March 13, 2009 Share Posted March 13, 2009 Single quotes also won't work. URLs for images don't take quotes in CSS declarations. Link to comment https://forums.phpfreaks.com/topic/149049-whats-wrong-with-this-css/#findComment-783454 Share on other sites More sharing options...
jlhaslip Posted March 15, 2009 Share Posted March 15, 2009 You do not have the CSS applied to an element. <style type="text/css"> body { background-image: url("http://domain.com/bluebackground.jpg"); background-repeat: no-repeat; width: 550px; } </style> Link to comment https://forums.phpfreaks.com/topic/149049-whats-wrong-with-this-css/#findComment-785491 Share on other sites More sharing options...
haku Posted March 16, 2009 Share Posted March 16, 2009 haha! That's a pretty big one in itself! Link to comment https://forums.phpfreaks.com/topic/149049-whats-wrong-with-this-css/#findComment-785625 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.