Web Analytics Made Easy -
StatCounter background: url(”someImage.jpg”) - CodingForum

Announcement

Collapse
No announcement yet.

background: url(”someImage.jpg”)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • background: url(”someImage.jpg”)

    In this first example the url('') has quotes, it is not necessary but maybe has some advantages or disadvantages in some browsers.

    PHP Code:
    divExample {background-image:  url('someImage.jpg')} 
    In this second example the url() has no quotes, it is not necessary either but maybe has some advantages or disadvantages in some browsers.

    PHP Code:
    divExample {background-image:  url(someImage.jpg)} 
    all that have any knowledge about this, gladly appreciate some feedback on this CSS matter
    Information is not knowledge,Knowledge is not wisdom,Wisdom is not truth,Truth is not beauty,Beauty is not love,Love is not music and Music is THE BEST. Frank Zappa

  • #2
    I can't recall the specifics, but have concluded through experience and various third-party articles that omitting quotes completely from css urls is the most stable and least problematic option of those available.

    e.g.…

    background-image: url(someImage.jpg)
    Why you should validate your code before asking for help...

    Comment

    Working...
    X