I have a very quick question but I don't know how to phrase it optimally to get a relevant search result. Basically I have a <div class="element"></div> with .element{height:100px}. I'm adding a after pseudo element to my .element with the same height but I'm not sure how to reference the original height in the pseudo one.
Thank you. (I hope what I just said makes sense)
Sounds like you can simply use 100%:
.element:after {
content: 'your generated content';
display: block;
height: 100%;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With