css data-attribute as width code example Example: css set property with data attribute div::after { content: attr(data-whatever); }