daveWare 0 Posted January 5, 2006 Report Share Posted January 5, 2006 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 Quote Link to post Share on other sites
F-Man 0 Posted January 5, 2006 Report Share Posted January 5, 2006 All three ways are correct. Quote Link to post Share on other sites
daveWare 0 Posted January 5, 2006 Author Report Share Posted January 5, 2006 All three ways are correct.<{POST_SNAPBACK}> So it doesn't really matter. Thanks! Quote Link to post Share on other sites
Guest dinanath Posted January 6, 2006 Report Share Posted January 6, 2006 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 Quote Link to post Share on other sites
smiles 7 Posted January 9, 2006 Report Share Posted January 9, 2006 only the third way is correct Quote Link to post Share on other sites
~Shinta 0 Posted January 9, 2006 Report Share Posted January 9, 2006 The third way is best, the other two work. Quote Link to post Share on other sites
daveWare 0 Posted January 25, 2006 Author Report Share Posted January 25, 2006 Thanks Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.