Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ Table colours and sizes

Posted by: Albert Sep 5 2006, 09:48 PM

I am trying to figure out if it better to use "insert file" into a table cell rather than use ther image as the cell background both give the same effect, but I need the cell to remain the same size as the image.
Hope you can help on this simple question.
thanks
Albert

Posted by: Christian J Sep 6 2006, 05:29 AM

QUOTE(Albert @ Sep 6 2006, 04:48 AM) *

I am trying to figure out if it better to use "insert file" into a table cell rather than use ther image as the cell background


Do you mean if it's better to use an IMG element or a CSS background-image in the TD? If the image is considered important content, use the IMG element (with proper ALT text) . If the image is just for decoration it doesn't really matter.

QUOTE
both give the same effect, but I need the cell to remain the same size as the image.


Depending on the rest of the table you may have to specify width and height of the table cell in either case.

A link to a sample page might be helpful.

Posted by: pandy Sep 6 2006, 05:57 AM

I think Christian means he'd like you to post the URL to a sample page so we can better understand the problem. So would I. happy.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)