oldboot Posted December 29, 2015 Share Posted December 29, 2015 Hello everyone I have been trying and failing to add a background image to my web page via an external style sheet. I used the following code: body { background-image: url(mywebpage/image.jpeg); } Could someone help me please and tell me where i've gone wrong. Link to comment Share on other sites More sharing options...
dsonesuk Posted December 29, 2015 Share Posted December 29, 2015 The link to image must be relative to external css file not the html page, the link to css file should be relative to the page. Depending on where you have placed the css file (css folder etc) will determine what the actual link should be. Link to comment Share on other sites More sharing options...
dauruk0512 Posted December 30, 2015 Share Posted December 30, 2015 yes like dsonesuk said above, here documentation and please be aware about folder, thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now