hernantz
12-18-2010, 08:34 PM
Hi all,
Well just that, Is it the same to do this (just an example)
.option1 { background:url(foo.png) 0 0 no-repeat;
.option2 { background:url(foo.png) 0 -30px no-repeat;
.option3 { background:url(foo.png) 0 -60px no-repeat;
and this? (just an example too)
.option-container { background:url(foo.png) no-repeat;}
.option1 { background-position: 0 0 no-repeat;}
.option2 { background-position: 0 -30px no-repeat;}
.option3 { background-position: 0 -60px no-repeat;}
The question is oriented to the best solution for performance. Are there any significant differences?
Thanks in advance
Well just that, Is it the same to do this (just an example)
.option1 { background:url(foo.png) 0 0 no-repeat;
.option2 { background:url(foo.png) 0 -30px no-repeat;
.option3 { background:url(foo.png) 0 -60px no-repeat;
and this? (just an example too)
.option-container { background:url(foo.png) no-repeat;}
.option1 { background-position: 0 0 no-repeat;}
.option2 { background-position: 0 -30px no-repeat;}
.option3 { background-position: 0 -60px no-repeat;}
The question is oriented to the best solution for performance. Are there any significant differences?
Thanks in advance