Problem With <div> and Image Layout For IE vs FF

I have a problem with a div container and how it displays a centered
image. When viewed in IE the image is flush with the background image
which is great. When viewed in FF there seems to be a margin of some
kind. For the life of me I can not figure it out.
What am I missing?

Here's a link to the page
http://208.112.74.57/div/divproblem.html

Thanks for your help
Scott_From_PA [ Fr, 01 Februar 2008 05:14 ] [ ID #1922222 ]

Re: Problem With <div> and Image Layout For IE vs FF

Well bust mah britches and call me cheeky, on Fri, 01 Feb 2008 04:14:29 GMT
Fred scribed:

> I have a problem with a div container and how it displays a centered
> image. When viewed in IE the image is flush with the background image
> which is great. When viewed in FF there seems to be a margin of some
> kind. For the life of me I can not figure it out.
> What am I missing?
>
> Here's a link to the page
> http://208.112.74.57/div/divproblem.html

Because the image is inline and ff is allowing space for lower-extending
letters. Try display:block; for the image.

--
Neredbojias
Riches are their own reward.
Neredbojias [ Fr, 01 Februar 2008 05:27 ] [ ID #1922223 ]

Re: Problem With <div> and Image Layout For IE vs FF

On Fri, 1 Feb 2008 04:27:02 +0000 (UTC), Neredbojias
<monstersquasher [at] yahoo.com> wrote:

>Well bust mah britches and call me cheeky, on Fri, 01 Feb 2008 04:14:29 GMT
>Fred scribed:
>
>> I have a problem with a div container and how it displays a centered
>> image. When viewed in IE the image is flush with the background image
>> which is great. When viewed in FF there seems to be a margin of some
>> kind. For the life of me I can not figure it out.
>> What am I missing?
>>
>> Here's a link to the page
>> http://208.112.74.57/div/divproblem.html
>
>Because the image is inline and ff is allowing space for lower-extending
>letters. Try display:block; for the image.

Excellent, Thank you!
Scott_From_PA [ Fr, 01 Februar 2008 05:56 ] [ ID #1922224 ]
Miscellaneous » alt.html » Problem With <div> and Image Layout For IE vs FF

Vorheriges Thema: How to using html to launch Directory browser
Nächstes Thema: What about validating a web site?