473,396 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Image Positioning Inside Table Problem (IE only)

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
Jan 2 '08 #1
14 4157
Thomas J wrote:
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

Jan 2 '08 #2
nonsens

T
Jan 2 '08 #3
Thomas J wrote:
nonsens
And learn to quote and attribute.
T
And learn to make a valid sig.

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

Jan 3 '08 #4
and your must be so proud wasting your time and bytes on hundreds of servers
T
Jan 3 '08 #5
Thomas J wrote:
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

Jan 3 '08 #6
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.

Jan 3 '08 #7
On 3 jan, 17:29, cfarrell <fera...@gmail.comwrote:
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
Jan 4 '08 #8
On Jan 4, 1:58 pm, GTalbot <newsgr...@gtalbot.orgwrote:
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:
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.
Jan 4 '08 #9
good luck, don quixote
T
Jan 6 '08 #10
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
Jan 6 '08 #11
Thomas J wrote:
good luck, don quixote
Hmm, I guess stupid and proud of it, eh?

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jan 6 '08 #12
I value every opinion, besides those getting personal.
T
Jan 6 '08 #13
Thomas J wrote:
I value every opinion, besides those getting personal.
Just not common courtesy or protocol:

http://www.google.com/search?hl=en&q...=Google+Search
nettiquet how to post on Usenet - Google Search

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jan 6 '08 #14
"Thomas J" <no****@nospam.nospamwrites:
I value every opinion, besides those getting personal.
Good for you. To what, and to whom are you replying? It's customary to
quote the relevant parts of the message to which you're responding, and
considered rude not to.

This is because of the distributed and asynch nature of usenet; your reply
may appear on my local server before the message you replied to, the original
may have expired and been deleted from my local server, or it may never
have arrived at all.

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
Jan 6 '08 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jukka K. Korpela | last post by:
I just noticed that most browsers render <table border="1"><tr><td><p>foo</p></td></tr></table> the same way as <table border="1"><tr><td>foo</td></tr></table> That is, they ignore the p...
1
by: John Leeke | last post by:
How are images positioned on a page? In particular, how do I adapt the following javascript code: ********** <img src="officecam0000.jpg" name="myImageName"> <script language="JavaScript">...
10
by: John Smith | last post by:
I know that uploading an image to a database has been covered, oh, about 3 trillion times. However, I haven't found anything covering uploading to a MySQL database with .net. Please don't...
2
by: Wayne Wengert | last post by:
I am trying to build an ASP.NET application which includes the capability to allow users to save pictures to a SQL Server 2000 database table and then later to display selected photos (usually JPG...
1
by: kuldeep bajaj | last post by:
Hi, I have developed one custom dropdown JSP tag just as HTML select box . I calculate width of dropdown box using div's offsetWidth attribute. But I am getting it's value as zero inside table...
2
by: jemedina74 | last post by:
What I am trying to accomplish is to have the background image of a table change every time a page is reloaded/refreshed. I have tried many different scripts and non of them have worked for me. I...
3
by: vunet | last post by:
When I use image as a bullet within LI element I have different image positioning results in Firefox and IE6. IE6 puts the image on top and far from left LI's border. Firefox puts it nicely in the...
2
by: Jim | last post by:
How can I use JavaScript to change a background image in a table cell? Here's the code for the cell <td width="338" valign="top" background="../images/ LEC_Q1.jpg"><div...
3
by: NKTA | last post by:
Hello again. I have a doubt in how to obtain the position of an image in a table cell. What i want to do is: - Find the image position, and add a new image on top of that image. The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.