View Single Post
  #6 (permalink)  
Old 08-28-2008, 03:35 PM
Roderik
Guest
 
Posts: n/a
Diggs:
Default Re: position of text on image

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?

--
http://www.archytas.nl/
webdesign, internet applicaties, internetgestuurde elektronica
Reply With Quote