Can someone help me figure out how to get the height of a pseudo :before
element? I've tried using jQuery but it's not working as expected. Here's what I attempted:
$('.test:before').height() // --> null
If you want to take a look, here's a link to my jsfiddle. Any ideas on what I might be doing wrong?
UPDATE: The height of .test
changes based on the content inside. My goal is to add padding to the right of the element when its height exceeds that of the pseudo element. However, since the height of the pseudo element is set by CSS, I'm struggling to access it in my program.