PC Review


Reply
Thread Tools Rate Thread

BUG!!! IMG in TD has problem with WIDTH="100%"

 
 
Edward Yang
Guest
Posts: n/a
 
      23rd Feb 2005
IE6 seems to wrongly interprets IMG width=100% in a TD cell as the width
of the image itself. See the following test file.

test.html:
<!-- this does NOT work! -->
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="102">
<tr>
<td>
<img src="x.jpg" width="100%" height="101">
</td>
</tr>
<tr>
<td></td>
</tr>
</table>

<!-- this works! -->
<div><img src="x.jpg" width="100%" height="101"></td></div>

The IMG in DIV element works fine - it scales well when browser window
resizes, while the one in TD cell does not.

It is very strange that if the width of x.jpg is less than browser
window width, then the picture in TD cell scales to the width of TD cell.


I have tested this page with Firefox and Opera, they all have expected
behavior. I think it's a bug of IE6. Can anyone confirm this?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding Property "Size" Works But Not "Width" -- Please Explain Tom Microsoft C# .NET 3 23rd Dec 2007 09:27 AM
Problem width "Help & Support" Lars Windows XP General 5 25th Oct 2006 04:15 AM
Do mighty exchange "pixels" on "mm" - cells (width, height)? :( And1 Microsoft Excel Programming 0 1st May 2006 01:17 PM
Re: XL2000 "Custon Views" "Column width" Problem Dave Peterson Microsoft Excel Discussion 0 9th Aug 2005 02:30 AM
"Section width greater than page width" message =?Utf-8?B?RGF2aWQ=?= Microsoft Access Reports 1 24th May 2004 10:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:09 AM.