Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE and Image 'Padding'

Status
Not open for further replies.

okiiyama

IS-IT--Management
Jan 3, 2003
269
US
I have an image in a table ce (not as background), and it seems that in IE there is padding around the image. I've tried monkeying with different attributes for both the <TD> and <IMG> tag to no avail. What I've got to work is to wrap the image in a div tag with the appropriate dimensions, but is there an attribute/style for either the <img>, <td>, or <table> tag I could use instead?

Thanks.
 
first, try removing whitespace from between tags.

change this:

Code:
<td>
  <img ... />
</td>

to this:

Code:
<td><img ... /></td>

or:

Code:
<td
  ><img ... 
/></td>

if that doesn't help, post your code please.

*cLFlaVA
----------------------------
[tt]your mom goes to college[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
The second one did the trick, thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top