SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : HTML and CSS :

Previous DiscussionNext Discussion
 shrinking an img inside a td

I've got this gradient bar, originally 700px wide, that should expand and contract with page width (see the div tag within the td.)  By itself outside the table, it works.  Inside the table, it does not shrink below 700px, but it will expand.

In Firefox and netscape it shrinks properly, but not IE.  So what is it about the table that it behaves differently in IE?  IS there a fix for this that does not require javascript to change the img size by code?

Thanks for any help!

 

<table width=100%>
  <tr>
    <td style="width:100%">
      <div style="width:100%"><img src="graphics/misc/grad_bar.gif" width=100% height=10 alt=""></div>
    </td>
  </tr> 
</table>

 

P.S.  I tried adding width:100% to the body and html, and every possible combination, but no luck.

Started By wasnewski on Sep 18, 2007 at 7:24:48 AM
This message has been edited.

10 Response(s) | Reply

Earlier Replies | Replies 3 to 3 of 10 | Later Replies
Goto Page: 2 1
brian on Sep 18, 2007 at 7:33:49 AM (# 3)

try style="width:100%;height:10px;" on the image...I'm not saying it will work but it might...


Earlier Replies | Replies 3 to 3 of 10 | Later Replies
Goto Page: 2 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.