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;
}