Jump to content

css background image


daveWare

Recommended Posts

When dropping in a background image I've seen the code written several different ways and was wondering what the correct method is. Example 1 I believe this is how Dreamweaver writes it.

background-image: url(../images/header.gif);

Example 2 I've seen it written this way on the Web using double quotes.

background-image: url("../images/header.gif");

Example 3 I've also seen it written this way on the Web using single quotes.

background-image: url('../images/header.gif');

or does it matter?and if it does matter can I assume it applies to any property that uses url()?Thanks,Dave

Link to comment
Share on other sites

Guest dinanath
When dropping in a background image I've seen the code written several different ways and was wondering what the correct method is. Example 1 I believe this is how Dreamweaver writes it.
background-image: url(../images/header.gif);

Example 2 I've seen it written this way on the Web using double quotes.

background-image: url("../images/header.gif");

Example 3 I've also seen it written this way on the Web using single quotes.

background-image: url('../images/header.gif');

or does it matter?

this one is correct for all brosers = background-image: url(../images/header.gif);Try this
Link to comment
Share on other sites

  • 3 weeks later...

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...