First time asking a question on this platform!
I'm attempting to achieve a "pixel perfect" horizontal alignment of two lines of text, with each line having a different font size.
<style type="text/css">
* { font-family: sans-serif;}
div { float: left;}
h1 { font-size: 150px; margin-bottom:-30px; }
</style>
<div>
<h1> B </h1>
<h6> B-L.align </h6>
</div>
<div>
<h1> L </h1>
<h6> L.align </h6>
</div>
View the example here: http://jsfiddle.net/jgYBD/1/
When observing the sample, you may notice that the larger font has more spacing than the smaller font, causing them to be slightly misaligned.
I am seeking a method or formula to perfectly align them to the left without resorting to trial and error with adjusting the margin-left property!
Any suggestions or insights are welcome. Thank you.