CSS - Attr function (attribute)

About

The attr function select the value of an attribute

Example

<p data-length="2m" >Beyond The Sea</li>
p::before {
   content: attr(data-length) " ";
}

where:

Documentation / Reference


Powered by ComboStrap