Roderik wrote:
> Jonathan N. Little schreef:
>> Roderik wrote:
>>> Hi,
>>>
>>> I guess I am missing something. I tried to put a caption on my photo
>>> (on the bottom) but the caption appears to be a bit higher and
>>> overshooting the area of the image with a few pix.
>>>
>>> You can see it on:
>>> http://www.roderik.net/caption.php
>>>
>>>
>>> Any idea btw. whether some standard JS framework provides a function
>>> for slide in caption as you can see on the images of:
>>> http://www.guardian.co.uk/
>>>
>>>
>> [...] .richimage img {
>> /* else img inline and will have descender space */
>> display: block;
>> -- [...]
>
> Thanks that did it. I was suppossing that there wouldn't be descender
> space after setting margins and paddings to 0. Or has it to do with
> line-height?
>
No it has to do with an inline element has space reserved for ascenders
and descenders and diacritic marks.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com