[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [CF-Scripting] Space under images



Cheers Damian, that's what I mentioned in my first post but I don't want all
images to be block level. I can use a class for those that can be but then
I'd rather something that took out the space all over the place and kept
images inline.

Ade

-----Original Message-----
From: scripting-bounces@list.cfdeveloper.co.uk
[mailto:scripting-bounces@list.cfdeveloper.co.uk]On Behalf Of Damian Watson
Sent: 18 February 2005 16:49
To: Javascript, CSS, XML, DHTML
Subject: Re: [CF-Scripting] Space under images

Hey Ade,

The space under an image is usually caused as it's an inline element so
it sits on the baseline. The answer should actually be to display:block
in the image's style.

Oi fink...

Adrian Lynch wrote:

>>- see footer for list info
>>
>>
>Ok, answering myself. img { vertical-align: bottom; } seems to be what I
was
>after. Does anyone know different?
>
>Ade
>
>-----Original Message-----
>From: scripting-bounces@list.cfdeveloper.co.uk
>[mailto:scripting-bounces@list.cfdeveloper.co.uk]On Behalf Of Adrian
>Lynch
>Sent: 18 February 2005 16:34
>To: Javascript, CSS, XML, DHTML
>Subject: RE: [CF-Scripting] Space under images

>>
>Also, for the next time I forget how to do this, what is the space beneath
>text for the tails of lowercase ys js called? I remember this being the
>thing that causes the space under the image.
>
>Ade
>
>-----Original Message-----
>From: scripting-bounces@list.cfdeveloper.co.uk
>[mailto:scripting-bounces@list.cfdeveloper.co.uk]On Behalf Of Adrian
>Lynch
>Sent: 18 February 2005 16:30
>To: scripting@list.cfdeveloper.co.uk
>Subject: [CF-Scripting] Space under images
>
>I can't for the life of me remember how to remove the space that appears
>under images.
>
>I've tried this display: block; which works but I don't want to make images
>block level elements.
>
>Does anyone know what I can add to make this go away for all images or
>failing that the containers they sit in? I have a horrible feeling someone
>is going to mention the doctype and quirks mode, or the lack of it.
>
>Ade

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005