HighDots Forums  

Image Positioning Inside Table Problem (IE only)

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Image Positioning Inside Table Problem (IE only) in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas J
 
Posts: n/a

Default Image Positioning Inside Table Problem (IE only) - 01-02-2008 , 07:09 AM






Hello Developers!

I am pulling my hairs out. IE adds extra space below an image when I align
it at the bottom inside a table cell.
Firefox and Opera render as expected.

Simple example available at
http://my-picture-store.com/test/panelboxtest.htm
Any ideas? cellspacing and cellpadding is already set to zero.

Thomas



Reply With Quote
  #2  
Old   
Blinky the Shark
 
Posts: n/a

Default Re: Image Positioning Inside Table Problem (IE only) - 01-02-2008 , 01:15 PM






Thomas J wrote:

Quote:
Hello Developers!
Crosspost, don't multipost.

http://oakroadsystems.com/genl/unice.htm#xpost


--
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org



Reply With Quote
  #3  
Old   
Blinky the Shark
 
Posts: n/a

Default Re: Image Positioning Inside Table Problem (IE only) - 01-02-2008 , 09:27 PM



Thomas J wrote:

Quote:
nonsens
And learn to quote and attribute.

Quote:
T
And learn to make a valid sig.

--
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org



Reply With Quote
  #4  
Old   
Thomas J
 
Posts: n/a

Default Re: Image Positioning Inside Table Problem (IE only) - 01-03-2008 , 10:10 AM



and your must be so proud wasting your time and bytes on hundreds of servers
T



Reply With Quote
  #5  
Old   
Blinky the Shark
 
Posts: n/a

Default Re: Image Positioning Inside Table Problem (IE only) - 01-03-2008 , 02:05 PM



Thomas J wrote:

Quote:
and your must be so proud wasting your time and bytes on hundreds of servers
T
It wouldn't be wasted if it got you to learn how to post, dimbulb.


--
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org



Reply With Quote
  #6  
Old   
cfarrell
 
Posts: n/a

Default Re: Image Positioning Inside Table Problem (IE only) - 01-03-2008 , 04:29 PM



Thomas J wrote:

Quote:
I am pulling my hairs out. IE adds extra space below an image when I align
it at the bottom inside a table cell.
Firefox and Opera render as expected.

Simple example available athttp://my-picture-store.com/test/panelboxtest.htm
Any ideas? cellspacing and cellpadding is already set to zero.
Hi Thomas,

You need to add this to your CSS in the head of your page:

IMG {margin: 0px;display:block;}

That will remove that tricky 3px bottom margin

Regards,
Casey.



Reply With Quote
  #7  
Old   
GTalbot
 
Posts: n/a

Default Re: Image Positioning Inside Table Problem (IE only) - 01-03-2008 , 08:58 PM



On 3 jan, 17:29, cfarrell <fera... (AT) gmail (DOT) com> wrote:
Quote:
Thomas J wrote:
I am pulling my hairs out. IE adds extra space below an image when I align
it at the bottom inside a table cell.
Firefox and Opera render as expected.

Simple example available athttp://my-picture-store.com/test/panelboxtest..htm
Any ideas? cellspacing and cellpadding is already set to zero.

Hi Thomas,

You need to add this to your CSS in the head of your page:

IMG {margin: 0px;display:block;}

That will remove that tricky 3px bottom margin

Regards,
Casey.
Casey,

Have you actually examine the original poster's message and more
carefully his webpage? You see, over at another discussion forum
(alt.html), a poster (rf) claims that the issue is to remove "the
whitespace before the </td> (...) IE incorrectly *uses* that
whitespace. Modern browsers correctly ignore it."

Now, this is where we really needed all and deserved all to get the
poster to avoid cross-posting and wasting everyone's time and typing
hands. We would have then all benefited (and learned) from having a
non-fragmented discussion on the original poster's.

To Thomas J:
Do not multi-post. Cross-post if you really believe you need to and
then set a followup-to accordingly. It is in your best interests to do
so. You're the one who should try to comply with rules, etiquette and
common grounds in newsgroups. Not the other way around.

Regards, Gérard


Reply With Quote
  #8  
Old   
cfarrell
 
Posts: n/a

Default Re: Image Positioning Inside Table Problem (IE only) - 01-04-2008 , 04:26 PM



On Jan 4, 1:58 pm, GTalbot <newsgr... (AT) gtalbot (DOT) org> wrote:
Quote:
Casey,

Have you actually examine the original poster's message and more
carefully his webpage? You see, over at another discussion forum
(alt.html), a poster (rf) claims that the issue is to remove "the
whitespace before the </td> (...) IE incorrectly *uses* that
whitespace. Modern browsers correctly ignore it."
Hi Gérard,

Yes - here's the statement I was answering:

Quote:
IE adds extra space _below_ an image when I align
it at the bottom inside a table cell.
If IE were using the whitespace before the </td>, it would have made
space to the right of the image, not below.

I had a look at the linked page and could see that issue, and the
styling rules I posted will fix that issue. I believe it is actually
caused by IE forcing a td to be the height of the line-height when any
inline element is inside that td, and placing that inline element at
the top of the line.

I agree, the OP should have cross posted - then if the original
question had changed I would have known about it. It would be good to
hear back from him to see if the problem has been solved but I fear he
may have been scared off by the aggressive tone after a simple
mistake.

Casey.


Reply With Quote
  #9  
Old   
Thomas J
 
Posts: n/a

Default Re: Image Positioning Inside Table Problem (IE only) - 01-06-2008 , 05:44 AM



good luck, don quixote
T



Reply With Quote
  #10  
Old   
Thomas J
 
Posts: n/a

Default Re: Image Positioning Inside Table Problem (IE only) - 01-06-2008 , 07:05 AM



Hi Casey,

I do not get scared off that easily.

Again, my problem was unwanted space below an image aligned to the bottom of
a table cell.
See: http://my-picture-store.com/test/PanelBoxTest.htm

What I need to accomplish was placing more than one image at the very bottom
of a table cell. I did not specify this initially not knowing that it would
make a difference.

Eliminating whitespace between elements inside the table cell (<td>) solved
the problem!
- see: http://my-picture-store.com/test/PanelBoxTest1.htm.
(tested in IE, Firefox, Opera and Safari)

Thank you for your and others help.

T



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.