0

I tried to hide scrollbars in an iframe whose content is loaded from an external website. I used overflow:hidden and also overflow-x: hidden as well as overflow-y: hidden but that doesnt seem to solve my problem

What did I do wrong? Or what is wrong with my approach?

Here is my JSFIDDLE

Here is my HTML

<body>
<div class="outer">
  <div class="noScrolling">
    <iframe scrolling="no" seamless="seamless" class="inner" src="https://www.initialstate.com/embed/#/tiles/kkCIxiV4PJmg6y88ldn5HvhNiALMBdHp" frameborder="0" allowfullscreen></iframe>
  </div>
</div>
</body>

CSS

body {
    width: 100vw;
  height: 100vh;
  margin: 0 auto;
}
.outer {
  position: relative;
  background: url("http://wrb.farm/demo/background-with-backdrop.jpg") no-repeat center;
  background-size: 100% 100%;
  width: 100%;
  height: 100%;
}
.noScrolling {
  width: 100%;
  height: 100%;

}

.inner {
  position: relative;
  width: 54%;
  height: 73%;
  top: 9%;
  left: 23%;
  overflow: hidden;

}
Kilvish Shakal
  • 129
  • 2
  • 4
  • 13

1 Answers1

0

The Scrollbars are from the Element

<div class="gap row" data-ng-class="{edit:app.editMode, auto: autoLayout}">

Wich is inside the iFrame, and not the iFrame itself. So you would have to change the style of this element (overflow:hidden)

CoderPi
  • 12,985
  • 4
  • 34
  • 62