css sprites: which html element using for background-position? -
i wondering using css sprites tag html best?
i mean can use
< img src="trasparent.png" style="background-position:ecc"> or ?
i saw google using < span> "o" of g"o o o o o"gle
thanks
you can use element like.
one thing note though elements <span>
, <a>
inline elements. if try , add dimensions them match size of background sprite, these dimensions ignored. fix can use things line-heights or padding set dimensions, or change element block level element using css: display:block
.
another rule allow dimensions added display:inline-block
, can cause few issues in ie6 , earlier browsers.
Comments
Post a Comment