Patricio Treviño

Patricio Treviño

Husband . Father . Developer
2total entries in features

Adding content via css content/attr functions

Syntax

<selector>:[before|after] {
content: [attr(<attribute>) | 'plain text']
}
view raw syntax.text hosted with ❤ by GitHub

Option Description
attribute The name of the attribute to be used to populate content.

Calculating values in css with calc

Syntax

calc(<expression>)
view raw syntax.text hosted with ❤ by GitHub

Option Description
expression A mathematical expression, the result of which is used as the value.