I tried to optimize my CSS code by using shorthand , specifically with the property background , the problem is when I want to incorporate the property background-size in the shorthand . Please, I would appreciate your help, since I was searching and I could not find the solution, I do not know if it has much to do with the order in which the values within the shorthand go.
This is the HTML
<p><a href="mailto:[email protected]">JEAN LEON: Director Comercial.</a></p>
<p><a href="mailto:[email protected]">SHEYLA RIOS: Jefa de Ventas.</a></p>
Here the extended code without using shorthand (validated by W3C):
a[href^="mailto"] {
background: url("../imagenes/mail.png") left center no-repeat;
background-size: 1.5em;
padding-left: 40px;}
Using Shorthand returns Error.
a[href^="mailto"] {
background: url("../imagenes/mail.png") 1.5em left center no-repeat;
padding-left: 40px;}