Jump to content

css background image


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 post
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 post
Share on other sites
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...