2total entries in features
Adding content via css content/attr functions
Syntax
<selector>:[before|after] { | |
content: [attr(<attribute>) | 'plain text'] | |
} |
Option | Description |
---|---|
attribute | The name of the attribute to be used to populate content. |
Calculating values in css with calc
Syntax
calc(<expression>) |
Option | Description |
---|---|
expression | A mathematical expression, the result of which is used as the value. |