html - Verticle Metrics in multiple fonts -
so having issue , dont know how fix it. building website , using different fonts
i need every font optically identical other , aligned @ base.
let's write hello (helvetica) hello (georgia) correct size of them beacuse 40px helvetica isn't same size 40px georgia. problem concerning baseline
when see of fonts (same px , line-height) 1 next other, arent aligned horizontally.
thank guys!
@cameron.townsend comment correct. going want use vertical-align:baseline;
on text how want.
here fiddle showing off different alignments: https://jsfiddle.net/g7oqupej/1/
that being said, appears default (vertical-align:initial;
) behavior chrome vertical-align:baseline;
not sure other browsers haven't tested, fonts used in fiddle, things seems line want.
i suggest creating fiddle shows problem having see if else being done.
Comments
Post a Comment