How do you create a table with a graphic that doesn't have a margin?

M

MB

I have a table and a graphic that I would like to alignup without
having a margin around it.

<table border="0" cellpadding="0" style="border-collapse: collapse"
width="243" bgcolor="#FFFFFF">
<tr>
<td valign="baseline" height="62">
<img border="0" src="images/green.gif"
align="absbottom"></td>
</tr>
<tr>
<td bgcolor="#006B39">
test test</td>
</tr>
</table>
 
S

Stefan B Rusynko

You don't indicate you image size in you code
- make the cell height 2 px less than the image height

PS
also try setting your cell and image valign and align to middle




| I have a table and a graphic that I would like to alignup without
| having a margin around it.
|
| <table border="0" cellpadding="0" style="border-collapse: collapse"
| width="243" bgcolor="#FFFFFF">
| <tr>
| <td valign="baseline" height="62">
| <img border="0" src="images/green.gif"
| align="absbottom"></td>
| </tr>
| <tr>
| <td bgcolor="#006B39">
| test test</td>
| </tr>
| </table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top