/    Sign up×
Community /Pin to ProfileBookmark

How do I set the height of iFrame?

Hello,

I need your help please. On my [URL=”https://onderax.cz/#!/GALERIE”]website[/URL] I have a web site with Flickr Gallery, but this height is small and I do not know to set it up correctly.

Can you help me please?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@rootOct 01.2017 — Your search engine is your friend, it is quicker to get an answer to simple issues by using your search engine of choice, I types in "How to set minimum height of an iframe" in to my search engine of choice and one of the sites that popped up was http://www.tagindex.net/css/frame/max_height.html

So as you can see, this has nothing to do with JavaScript at all ?

*moved to CSS*
Copy linkTweet thisAlerts:
@gullyauthorOct 01.2017 — Hello, It will not be so easy. Thank you for moving the topic.
Copy linkTweet thisAlerts:
@rootOct 01.2017 — In the site link I posted, it is very clear what you need to use to obtain the desired result as seen in the example [code=html]<html>
<head>
<title>TAG index</title>

<style type="text/css">

iframe {
width: 300px;
height: 100%;
max-height: 500px;
min-height: 300px;
}

</style>

</head>
<body>

<p>
<iframe src="example.html">Alternate content</iframe>
minimum height:300px - maximum height:500px
</p>

</body>
</html>[/code]


All you do is apply something like thisiframe {
width: 85%;
height: 100%;
max-height: 100%;
min-height: 80%;
}
to the element, in this case the iframe.

CSS is written like so... [code=html]<style>iframe {
width: 85%;
height: 100%;
max-height: 100%;
min-height: 80%;
}</style>[/code]
in your html page script in between the <head> tags
×

Success!

Help @gully 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...