Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
October 18, 2024 - @556.64 (what is this?)
Forum activity rating: Two Stars Posts: 24/1k.beats Unread Topics | Unread Replies | Own Posts | Own Topics | Random Topic | Recent Posts
News: :ha: :pc: Hello Melonland! :pc: :happy:
Halloween Topics! Gfx + Costumes, Decor + Crafts, Prep, Horror Movies, Spooky Songs! ~ E-Zine #2 is out now!

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Quick iframe size question...


« previous next »
Pages: [1] Print
Author Topic: Quick iframe size question...  (Read 495 times)
BlackMageGaming
Casual Poster ⚓︎
*


⛺︎ My Room

View Profile WWW

Thanks for being rad!Black Mage HatJoined 2024!
« on: May 07, 2024 @619.85 »

Does anybody know how to force an iframe to display its contents fully without a scrollbar?

My main problem is on This page. At the bottom, I have a game review that changes language, which is why I'm using an iframe. However, it doesn't display fully on differently sized monitors. Noticed this when switching between my laptop and main computer.

What I want to have is an iframe that displays fully without a scrollbar, essentially hiding that it is an iframe so it matches with every other review on the page.

My current javascript code that handles the switching of the iframe is:
Code
function update_link(newUrl, newHeightVH){
	document.getElementById("dynalink").src = newUrl;
	document.getElementById("dynalink").style.minHeight = newHeightVH;
}
Logged

"The joy of living far outweighs the fear of death."
~ Black Mage #288

Melooon
Hero Member ⚓︎
*****


So many stars!

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games

View Profile WWW

Thanks for being rad!a puppy for your travelsAlways My PalFirst 1000 Members!spring 2023!Squirtle!!!!MIDI WarriorMIDI Warrior1234 Posts!OzspeckCool Dude AwardRising Star of the Web AwardMessage BuddyPocket Icelogist!OG! Joined 2021!...
« Reply #1 on: May 07, 2024 @650.78 »

Out of curiosity are you doing this iframe just so that you can swap the language inside the frame?

If that's the case, and you are planning to depend on JavaScript anyway, why not just make it a DIV and use JavaScript to swap the DIVs text with Turkish text when someone presses the button?  :wink:

Doing it that way would avoid all the size issues and simplify your styling!
Logged


everything lost will be recovered, when you drift into the arms of the undiscovered
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

Website size

Started by RolyBoard ✁ ∙ Web Crafting

Replies: 60
Views: 8967
Last post September 27, 2024 @517.45
by candycanearter07
HELP: troubles in implementing iframe to my existing layout

Started by morrysillusionBoard ☔︎ ∙ I need Help!

Replies: 8
Views: 2148
Last post June 07, 2022 @522.55
by Melooon
GUIDE: Mac - Quick compressing images for the web with Automator

Started by MelooonBoard ✁ ∙ Web Crafting

Replies: 0
Views: 1547
Last post June 05, 2022 @634.22
by Melooon

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP2


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi