0

Im trying to remove the scrollbar over at https://cardmart.com.au. If you click on "contact" it loads a form within an iframe and I cant for the life of me figure out how to remove that scroll bar.

I looked at solutions in this thread - HTML iframe - disable scroll

But its not working on my situation or I am implementing it wrong.

Any help much appreciated.

Netbuddy
  • 5
  • 2

1 Answers1

0

It seems that the scroll isn't on the iframe, it is on the body of the iframe. I was playing around with the Google Developer tools, and found that if you add overflow: hidden; to your iframe, it doesn't work. You'll have to go to the page that is being represented in the iframe and add this style to the body of that page:

body {
  overflow: hidden;
  /* Other code */
}
IPSDSILVA
  • 1,667
  • 9
  • 27
  • Works a treat. Cheers for that. Had to add in the "Custom Javascript & CSS" area of the Powr.io form that im pulling from. – Netbuddy Jan 06 '22 at 03:20