Alex Rivera | Logout

Which type of quotes we should use in css background url ("....")? Single, double or no quote needed?

Asked 2010-01-09T19:11:01.780
27

this

background:url(http://url);

this

background:url("http://url");

or this

background:url('http://url');
Edit
Report

1 Answer

3

I don't think any are right. It should be one of these:

background: url(http://url)

background: url("http://url")

background: url('http://url')

Note the colon, instead of curly braces.

answered 2010-01-09T19:16:13.807

Your Answer