Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide vertical scrollbar in iframe

Tags:

html

css

I need to remove vertical scrollbar in an iframe. I have tried using overflow: hidden; still not working. Please help.

How it looks now

Code:

#iphone4 {
background-image: url("ipad_new2.png");
background-repeat: no-repeat;
height: 900px;
width: 750px;
margin: auto ;
position: relative;
overflow: hidden;
}


/*Mobile iframe CSS*/
iframe {
height: 700px;
width: 525px;
position: absolute;
top: 68px;
margin: auto ;
left: 61.99px;
overflow-y: scroll;

}

</style>
</head>
<body>
 <div id="iphone4" >
<iframe src="index_atish.html" seamless="seamless"></iframe>
</div>

</body>
</html>
like image 304
Hrushi Patil Avatar asked Jan 06 '23 08:01

Hrushi Patil


1 Answers

overflow isn't a solution for HTML5 as the only modern browser which wrongly supports this is Firefox.

A current solution would be to combine the two:

<iframe src="" scrolling="no"></iframe>

iframe { overflow:hidden; }

check This

like image 94
Amitesh Kumar Avatar answered Jan 15 '23 15:01

Amitesh Kumar