Behind the Framework

Reduce Complexities & Improve Performance

Pseudo Content & attr()

Using attr() functions to apply values to the content property of a psedo element. The example below passes a string value through the HTML data-lable attribute. In CSS this value is applied to the content property of the :before pseudo element using the attr() function.