Jump to content

background-image:url("http://img.photobucket.com/a


blogsmith

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...