Data attribute content in CSS

by Jim_Toth

HTML

<div data-content="35px">dgdgdg</div>

CSS

[data-content]:before {
	font-size: attr(data-content);
}