If you want to use image elements instead of background images for your sprites, don’t forget about the clip property! http://sharedfil.es/sprite-clip-1p7Ho0ApCI.html …
@bdc Why would you use <img> for sprites, though? Looks bad with CSS disabled.
-
-
@mathias I needed to do that when adding dynamically icons with javascript. As for the render of the page without CSS, it doesn’t matter.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias In terms of accessibility, having an empty span with a background image or <img alt=“”> is exactly the same.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias I’m not saying it’s a better solution than bg images, but there are definitely some cases where having “real” img elements helps.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.