Posted by Harlan Messinger on 09/28/07 20:49
David Basford wrote:
> I have a problem that I can't get my head around
> I use php to call this but the end result is
>
> <table width='90%' border='0' cellspacing='8' cellpadding='6' >
> <tr>
> <td width='27%'><span class='resourceheader2'>Text</span><br><br><img
> src='Pic.jpg'></td>
> <td width='18%'>stuff</td>
> <td>stuff</td>
> </tr>
> </table>
>
> but the picture seems to set the width - and the other columns get minimised
> if I set
> <img src='Pic.jpg' width='27%'>
> then it ends up with a column of the width of the original pic with a 27%
> size picture in it :(
"Note that lengths expressed as percentages are based on the horizontal
or vertical space currently available, not on the natural size of the
image, object, or applet."
http://www.w3.org/TR/html4/struct/objects.html#adef-width-IMG
[Back to original message]
|