This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > November 2007 > IE7 img width="100%" ignores padding-right





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author IE7 img width="100%" ignores padding-right
Mark

2007-11-11, 3:15 am

The simple page below looks fine in Firefox2, with the image
respecting both the left and right padding just like the text above
it. In IE7, the text respects both the left and right padding, but
the image only respects the left padding and extends across into the
right cell. Any ideas for a work-around?

<html>
<head>
<title>padding test</title>
</head>
<body>
<table width="100%" border="1">
<tr>
<td style="padding-left:2em; padding-right:2em;">
<p>text text text text text text text text text text text text text
text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text</p>
<img class="bar" src="http://www.microsoft.com/windows/templates/
Common/images/bg_middle_aurora.jpg" height="20" width="100%">
</td>
<td width="160"><p>Sidebar</p></td>
</tr>
</table>
</body>
</html>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews