File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Same CSS rule for td width works for Firefox, but does not work for IE

 
Kevin manoj
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a table which have 3 columns. The first column is the holder for image (img tag), second column is always space ( ); and the third column is a text link.

I use this table to align the image and text link.

One weird thing is in some lines, td just wrap image well with no margins, no spacing and no padding. But for some other table lines, td is always 10 pixels wider than image width which causes the button alignment issue.

To solve this problem, i create a CSS rule as follow:

td { max-width:20px; width:20px}

20px is the width of the image. This rule works in FireFox3, but does not work for IE6.

Can anyone give me some clues about how to resolve the problem?

Thanks in advance
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IE6 does not have max-width

set overflow to hidden

issue can be with whitespace, use web developer toolbar for IE to inspect the element.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic