Thread: Drop caps
View Single Post
Old 03-04-2012, 05:57 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by huebi View Post
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.
Jellby is offline   Reply With Quote