blogsmith Posted April 27, 2006 Share Posted April 27, 2006 Which is correct?background-image:url("http://img.photobucket.com/albums/v336/cikgu/plane_clouds.jpg");orbackground:url("http://img.photobucket.com/albums/v336/cikgu/plane_clouds.jpg");I used the second one and it worked, but the first one looks 'more correct'Thanks Link to comment Share on other sites More sharing options...
smiles Posted April 27, 2006 Share Posted April 27, 2006 both is all right !!! Link to comment Share on other sites More sharing options...
Jonas Posted April 27, 2006 Share Posted April 27, 2006 Like blogsmith said, both are correct. The reason you would find background-image to look more correct, is because it has the word "image" in it, making it logical that it contains an image. "background" is a way to declare all background properties in one line, like this:http://www.w3schools.com/css/tryit.asp?fil...ycss_backgroundYou can combine all in one property background-image, background-color (should the image not load or not cover the entire background), background-repeat, background-position and background-attachment.More on css backgrounds:http://www.w3schools.com/css/css_background.asp 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