hwg-basics archives | Feb 2000 | new search | results | previous | next |
Image Widths in Tablesby "Rebecca Allen" <rlallen(at)ozemail.com.au> |
|
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