You're viewing a post in the CSS Network. These are hand-picked, CSS-related links and resources.

Data Attributes Rock — as Both CSS and JavaScript Know Them

on | Comments Closed

Chris Heilmann shows the power of data attributes and pseudo-elements. This demonstrates a way to make pseudo-element content dynamic (although watch for the fact that this could cause accessibility problems).

Go straight to the source >

Comments are closed.

Comments for this post are now closed.

Read the latest articles and tutorials if you'd like to have your say.