/    Sign up×
Community /Pin to ProfileBookmark

Table with iframe

Greetings Everyone,
I’m attempting to create a table with 4 rows. I have made the 3rd row an iframe.

If I specify the height and width it works just fine.

What I want to do is have the 3rd row auto adjust the height based on the html it loads.

In other words I don’t want the frame to scroll but browser to scroll.

I have tried to change the specified Height and width to a percentage but it shrinks the row to the point where it can’t be seen.

Below is the code I’m using.

Thanks in advance for your help.

——Cut Here——-

<td height=”100%” colspan=”7″><iframe align=”center” name=”inline” width=”100%” height=”100%” src=”main.html” frameborder=”0″></iframe></td>

—–Cut Here—–

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@IncaWarriorJun 28.2004 — run while you still can!

the 100% thing for frames seems to be buggy so if you must use frames, use a fixed height. If you need to kill a scroll bar add

<style>

body{overflow:hidden;}

</style>

to the frame code.
Copy linkTweet thisAlerts:
@webguy123authorJun 28.2004 — Thanks for info. Is there a better/easier way for me to accomplish what I want to do?
Copy linkTweet thisAlerts:
@IncaWarriorJun 28.2004 — if you just want something with a scroll bar then use:

<div style="overflow:auto;">

blah

</div>

you can resize that more easily to with width and height
Copy linkTweet thisAlerts:
@webguy123authorJun 30.2004 — Thanks for the help. I'll give that a try!
×

Success!

Help @webguy123 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...