What's the HTML code to have a background within a table/cell?
I created a website in PSD and it optimized it for the web and laid it out in tables. I'm trying to make this page look seamless so I want to set the images as backgrounds within the table so I can overlay them with highlightable text so search engines will pick it up. I can't seem to figure it out, so any help or nudge in the right direction would be great :-D.
Thanks in Advance!
Peter
Public Comments
- the code is: <table bgcolor="the color name or color hexadecimal code"> example : <table bgcolor="red"> or <table bgcolor="#ffff00"> you may apply that same syntax for td or tr in table structure. hope that helps !
- <html> <body> <h4>A background color:</h4> <table border="1" bgcolor="red"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> <h4>A background image:</h4> <table border="1" background="bgdesert.jpg"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> </body> </html>
- hope this solves ur problem <table background="image1.gif"> <tr> <td background="image2.gif"></td> <td background="image3.gif"></td> </tr> </table<
Powered by Yahoo! Answers