> 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