Skip to main content
gamedev.net
🔒 Locked

[web] html help

Started by Encicra 7 replies 1.2k views
Original Post
Encicra
Encicra
How do I make a table appear over an image rather then the image being the background of the cells.
chollida1
chollida1
you can use div tags
CheersChris
Sander
Sander
Simple. Attach the background image to the table tag instead of the cells :-)

<table style="background-image: url('image.png');">
<tr>
...
</tr>
</table>
Encicra
Encicra
I know how to make the table I just dont know how to get the image behind it. That didnt work.
Mattman
Mattman
Perhaps this...

<div style="background-image: url('image.png');">    <table>        ...    </table></div>
Sander
Sander
Also make sure you don'ty set any backgrounds (not even colors) on the rows and cells (or the table itself, if you try Mattman's code). They should be transparent so the background image shines through.
Encicra
Encicra
<table border="3" align="center">
<tr>
<td>Main</td>
<td>Forums</td>
<td>Contact Us</td>
<td>Links</td>
</tr>
</table>

That is the info for the table the image is at this link http://comicdev.atomictiger.net/LinkBar.gif if you could make that work and post it that would be a great help. I can't figure it out lol. I'm probably doing somthing stupid but I can play noob card lol.
Xipe
Xipe
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">  <tr background="http://comicdev.atomictiger.net/LinkBar.gif">    <td height="40" align="center">Main</td>    <td align="center">Forums</td>    <td align="center">Contact Us</td>    <td align="center">Links</td>  </tr></table>


Quote:
I'm probably doing somthing stupid but I can play noob card lol.

Or you could do this next time.

[Edited by - Xipe on November 30, 2005 6:59:15 AM]
--There is only one basic human right and that is the right to do as you damn well please, and with that right comes the only human duty; the duty to take the consequences.-- P.J. O'Rourke

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.