Is there a way to inherit node value into content
attribute?
Like, if <h2/>
tag value is set to "Random title", can I get this value inside content
attribute in CSS?
I've tried content: inherit;
, but it doesn't seem to work.
An example of my theory:
HTML:
<h2>Random title</h2>
CSS:
h2:after {
content: inherit; /* should be "Random title" */
}
Thanks in advance!
text-shadow: black 20em 0 0;
– Notwithstanding