I find measuring the distance between an element and text rather complicated. Cause I need to first know the biggest letter and measure the distance from that to the element. Then substract the padding from the line height. It would be much easier if I could display the line height as a box or something so I can measure just from that.
Is that somehow possible? How do you reliably measure the distance from text to an element to i.e. transfer it to css?