Solved

Hide iframe scrollbar in IE

Posted on 2013-12-24
3
548 Views
Last Modified: 2013-12-25
Hello,
I tried all solutions mentioned her, but I cannot get the vertical scroll-bar to disappear in IE and Chrome.
http://mytestweb.us/iframe.html .
Inserted scrolling:"no" into the iframe, applied various versions of overflow: hidden to body, iframe or form div (tried without form div too, also instead of hidden auto).

Interesting: this sample has a form within the iframe. When I use a different url in the iframe, no scroll-bar shows.

What am I doing wrong?

Thanks!
0
Comment
Question by:Sumukha
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
teodor birca earned 200 total points
ID: 39738718
for me using this code works fine in IE and Chrome .. the scroll bar iframe is not visible:

<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
<!--
iframe {
}
body {
	overflow: auto;
}
#form {
	overflow: hidden;
}
-->
</style>
</head>

<body>
<p><iframe src="http://mytestweb.us/forms2/form.php" style=" overflow:hidden;width: 165px; height: 370px;" scrolling="no"></iframe></p>

<p>&nbsp;</p>
<p>&nbsp;</p>





</body></html>

Open in new window

0
 

Author Closing Comment

by:Sumukha
ID: 39738756
You made my day.
Thanks!
0
 
LVL 3

Expert Comment

by:teodor birca
ID: 39739084
ur welcome, thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question