I created a page with 2 cases the first is the then I have iframe
that calls the link like here:
I want this iframe to take the rest of the height without using JS, just CSS .
here is the body code :
<body>
<header>
<div class="header-titles">
<div class="site-logo faux-heading">
<a href="https://www.psdgratuit.com/" class="custom-logo-link" rel="home"></a>
</div>
</div>
</header>
<main>
<h1>{{title}}</h1>
<h2>Download in progress</h2>
<p>
Your download strat automaticlly in few seconds <span class="blink_me">..</span> if it doesn't.
<a href="{{file}}" id="downloadLink" download class="blink_me display-none">Please click here to strat it manually</a>
</p>
</main>
<!-- I want this iframe take the rest of hieght-->
<iframe src="https://unynow.com/blog/2023/03/01/zero-calorie-sweetener-linked-to-heart-attack-and-stroke-risk/" width="100%" style="min-height: 500px;" frameborder="0" ></iframe>
</body>
i try style="min-height: 500px;" but is a min hieght
2
Answers
Try using height: -webkit-fill-available; for the iframe tag.
Please Try This types of code changes might be working for you.
This works well for me.