Why is there a space between the iframe and table? |
Why is there a space between the iframe and table? |
Deltaeagle |
Aug 12 2010, 01:11 PM
Post
#1
|
Group: Members Posts: 3 Joined: 12-August 10 Member No.: 12,486 |
http://jk.benburns.org/testing/
After doing web design many years ago, I'm at it once again (and doing terribly. I can't even make a page to list my portfolio apparently). My question is why is the iframe not fitting snugly against the table, after you mouseover where directed? Sorry about the sloppy code, wrote it quickly in notepad and without a stylesheet. Also any tips are much appreciated. edit: Just wanted to add that this doesn't show up when I view it locally, offline. This post has been edited by Deltaeagle: Aug 12 2010, 01:22 PM |
Darin McGrew |
Aug 12 2010, 01:42 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Inspecting the elements with Chrome, it looks like the tr element is 155px high (even though you specified height="150"), the td element is 153px high with 1px padding at the top and bottom, and the iframe element is 150px high, and the html element of the framed document is 8px high. Is that what you mean by "the iframe not fitting snugly against the table"?
|
Deltaeagle |
Aug 12 2010, 02:17 PM
Post
#3
|
Group: Members Posts: 3 Joined: 12-August 10 Member No.: 12,486 |
Inspecting the elements with Chrome, it looks like the tr element is 155px high (even though you specified height="150"), the td element is 153px high with 1px padding at the top and bottom, and the iframe element is 150px high, and the html element of the framed document is 8px high. Is that what you mean by "the iframe not fitting snugly against the table"? Yes exactly. How would I go about getting it to fit correctly? |
jolly_nikki |
Aug 12 2010, 03:41 PM
Post
#4
|
Group: Members Posts: 2 Joined: 12-August 10 Member No.: 12,488 |
Replace
CODE <tr height="150"> <td><iframe src="index2.html" frameBorder="0" style="height:150px; width:550px;" name="iframeportfolio"><a href="index2.html">Your browser does not support iframes</a></iframe></td> </tr> with CODE <td style = "margin: 0px; padding: 0px" > <iframe src="index2.html" frameBorder="0" style="height:100%; width:550px;margin: -5px -8px -5px 0px; " name="iframeportfolio"><a href="index2.html">Your browser does not support iframes</a></iframe></td> |
Deltaeagle |
Aug 12 2010, 04:47 PM
Post
#5
|
Group: Members Posts: 3 Joined: 12-August 10 Member No.: 12,486 |
worked! Thank you so much.
|
Lo-Fi Version | Time is now: 25th April 2024 - 06:51 AM |