Remove left and top padding from IFRAME in a cell?

F

FingersMeArse

Hello. :)

I have an IFRAME inside a table's cell, but there seems
to be some space between the top and left of the IFRAME
and the sides of the cell that I can't seem to get rid of.

Can anyone help me out here?
 
G

Grant Wagner

FingersMeArse said:
I have an IFRAME inside a table's cell, but there seems
to be some space between the top and left of the IFRAME
and the sides of the cell that I can't seem to get rid of.

Can anyone help me out here?

Not a JavaScript question. But:

<table border="1">
<tr>
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td style="padding:0;margin:0;"><iframe
src="http://www.yahoo.com" width="200"
height="100"></iframe></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
</table>

seems to work fine.
 

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

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top