Quote:
Originally Posted by huebi
Of course i can adjust the 1 with trial and error, but is there a proper way of aligning the paragraph and the heading vertical?
|
If you want exact alignment, no. Because what you can align is the "bounding box" of the characters, but how much space there is betweet the actual character and its bounding box depends on the font being used, and unless you embed both the heading and normal text fonts (not recommended) you can't know which font is going to be used.
But maybe you can get something approximate if you set "line-height: 1; vertical-alignment: top" in the heading.