Search code examples
htmlcssw3c

Does "background-size:"css style work in all browser (CSS)?


I have this simple css:

.privateMessageNumber{
    font-weight:bold;
    color:red;  
    font-size: large;
    background-image:url('/images/icon/mail.png');
    background-size: 37px 25px;
}

the question is will this css work in all browsers? I heard css2 didn't accept background-size, but what does that mean?

Does that mean that if user runs on browser that only support css2 then we can't use:

    background-size: 37px 25px;

Solution

  • Take a look at 'Can I Use' whenever you're unsure if a property will work in the browsers you're supporting.

    http://caniuse.com/#search=background-size