display background image in span

by Ramya 2013-12-11 18:46:48

display background image in span:

Normally, if you use background-image property in span, it won't display the image as background...

Hence use "display" property with the value "inline-block" as,


.sty{background-image: url(./images/image_3333.gif); background-position: -3px 0px; width: 13px; height: 11px; display: inline-block; }


which will work....

Razz
Razz
1366
like
0
dislike
0
mail
flag

You must LOGIN to add comments