The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Why is there a space between the iframe and table?
Deltaeagle
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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"?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Deltaeagle
post Aug 12 2010, 02:17 PM
Post #3





Group: Members
Posts: 3
Joined: 12-August 10
Member No.: 12,486



QUOTE(Darin McGrew @ Aug 12 2010, 02:42 PM) *

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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jolly_nikki
post 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>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Deltaeagle
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 06:51 AM