This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > June 2004 > Re: Aligning line spacing following different font sizes on the same





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Aligning line spacing following different font sizes on the same
Paul

2004-06-30, 12:15 pm

John wrote:
> Now and again I like to start a sentence with a large capital, maybe
> in a different font. This upsets the line spacing and I've failed to
> find any css that will effectively crop the capital letter from the
> bottom, to allow the line spacing of the following smaller font text
> to remain unaffected. I've always had to resort to a graphic for the
> leading capital - is there a way I can do this with css?
>


I think you might want the first-letter pseudo-element:

http://www.w3.org/TR/CSS21/selector.html#first-letter

I'm not sure how well supported it is in browsers. You don't really want
to crop the letter (which to me means cut off part of it), do you?
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews