CodeinWP CodeinWP

Data Attributes Rock — as Both CSS and JavaScript Know Them

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.