Remove scroll in an iFrame

Alyssa O'Mara asked on January 18, 2022 19:03

Hi,

I am using a form in an iFrame module and would like to remove the scroll from the iFrame. I tried adding overflow:hidden; to the container CSS class, but that didn't work. Any ideas on how I can make this work? Thank you!

Recent Answers


Liam Goldfinch answered on January 18, 2022 20:43 (last edited on January 18, 2022 20:49)

Can you try adding the scrolling attribute to the iframe? Like this:

<iframe scrolling="no" style="height:100px;width:100px;border:none;" src="https://devnet.kentico.com/"></iframe>

Or are you not able to modify the iframe? I'm not sure how you're currently using an iframe.

0 votesVote for this answer Mark as a Correct answer

Alyssa O'Mara answered on January 19, 2022 21:16

@liam Goldfinch - It's set up as a module. See the attached image for the options I have for adding code. Not sure if this helps at all.

Thanks very much!!

Module Screenshot

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.