This zone is sleeping right now! ZzzZZzzz

Better not disturb it! ~You go to the petrol station and buy a slushy instead, everything is cool!~

This area will open again in 000.beats!

(Learn about Swatch Time)

Some other zones are awake :^]


Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
September 07, 2026 - @43.76
Activity rating: Four Stars Posts & Arts: 64/1k.beats Random | Recent Posts | Guild Recents
News: It's only life! :dog: Guild Events: There are no events!

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


« previous next »
Pages: [1] Print Embed
Author Topic: Quick iframe size question...  (Read 1455 times)
BlackMageGaming
Full Member ⚓︎
***
View Profile WWWArt


⛺︎ My Room

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

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
https://blackmagegaming.com/icons/BMG_ForumSig.gifhttps://card.exophase.com/2/0/266938.png?1770155695
https://blackmagegaming.com/buttons/blackmagegamingButtonGenoSadness.gif

Artifact Swap: Nintendo 3DS!Game Gear!PlayStation Portable!Game Boy!
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


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

Guild Memberships:
Artifacts:
Wavy Shoulder-Length Hair with BangsTop HatBug!You're a Star!Flinstone VitaminI got robbed by Dan Q on Melonland!
« Reply #1 on: May 07, 2024 @650.78 » Embed

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

Artifact Swap: Have a chillpillMove it, football head!black n orange yappin kittayRed Tulip100 coinsLurbyxDeyntivemds pet fishGreen partyhatPlankGo dig, girl!Maya's Magatama
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


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
@000 MelonLand Editor Recent Edits Tenement Arcade Want to Login or Join ? Forum Art Hub Chat Webring Web Guides Graphics Catalogue Wiki Newsletters Image Stream
Melon's Sites TamaNotchi Textures PixelSea GifyPet MoMG Ozwomp Online Loom Videos Leaky Webring Melonking
Tools Melon Software ArtHub Embed Maker ML Passports
Outlinks Frutiger Aero Forum Onio Club m15o's Web Services 32Bit Cafe iMood Webrings Internet Phone Book HTML Energy Declarations Hackers & Designers
Zap!
Minecraft: Online
Who: Flibbit7