Image Widths in Tables
by "Rebecca Allen" <rlallen(at)ozemail.com.au>
|
| Date: |
Sat, 12 Feb 2000 15:46:33 +1000 |
| To: |
<hwg-basics(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
I have an image inside an embedded table cell, that I'd like to have the
width set to a percentage of the cell. The code I'm currently using is
<TD>
some text here
<BR>
<IMG SRC="images/lines/l_purple.jpg" WIDTH="90%" HEIGHT=2
BORDER=0
ALT=" ">
</TD>
In IE this works fine, however in NN it just displays a grey line
(similar to a <HR>) of
the required width and height, rather than the image (which is a 1x1
purple dot).
If I change the code to
<IMG SRC="images/lines/l_purple.jpg" WIDTH=500 HEIGHT=2 BORDER=0
ALT=" ">
NN displays it perfectly - however this doesn't allow for different
screen resolutions which
is why I went with a % rather than pixel width.
Is this just a difference in the way IE and NN treat tables, or is there
something I should add/delete to the above code?
Thanks in advance
Rebecca Allen
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA