Pardon my ignorance, but does this mean leading is not normally applied
to replaced elements, or that applying leading to the replaced element
(in this case an img) would be correct procedure and avoid the need for
the padding technique I used?

- Keith Purtell


On 11/8/2010 12:32 AM, css-d-requ...@lists.css-discuss.org wrote:
> ------------------------------
> Date: Sun, 7 Nov 2010 21:27:36 -0800
> From: "Thierry Koblentz" <n...@tjkdesign.com>
> To: <keithpurt...@keithpurtell.com>,  "'css discuss'"
>       <css-d@lists.css-discuss.org>
> Subject: Re: [css-d] Aligning a floated image with the top of
>       following text
> 
>> > Part of the way into revising my little site, I noticed that the top
>> > edge each floated image was about four pixels above the top of the
>> > capital letter(s) of the text that immediately followed. I found a
>> > solution; using padding to push the image down a bit. But I never
>> > understood why that four-pixel disparity was there in the first place?
>> > 
>> > http://www.keithpurtell.com/kthings/atget.htm
> This space is called "half-leading". It is half the difference between the
> value of line-height and font-size. If the image does not have the same
> space above it, it is because leading is not applied to replaced elements.
> 
> --
> Regards,
> Thierry
> www.tjkdesign.com | www.ez-css.org | @thierrykoblentz


______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to