-

2011年8月4日星期四

HTML: How to add image to the heading of the table?

-I add it and it come up small and if I define its width and height than the whole table (<td>) mess up in size too.First, tables are not for placement of images. Yeah, I know all the WYSIWYG HTML creators use tables because the program cannot be written to do it properly. Now, the size of the image, I would bet 10 to 1 that you are using a small image and that is the reason the image is small. Guess what you need to do.

.

.

.

..

Use a larger image.I am not exactly sure if I understand you correctly. But one option would be to add the background attribute to the cell.

<td background='images/bg1.jpg> BLA BLA </td>



or you can do so with css via:

#divID td {

background: url(image/th_stripe.gif);

}

Does that answer your question?

没有评论:

发表评论