www.webdeveloper.com
Results 1 to 4 of 4

Thread: div overflow hidden with iframe

  1. #1
    Join Date
    Nov 2008
    Posts
    18

    div overflow hidden with iframe

    currenty i was trying a css solution like this:

    Code:
    #iframe_mask {
    		position:relative;
    		width:410px;
    		height:469px;
    		overflow-y:scrolling;
    		overflow-x:hidden;
    		left:347px;
    		border:5px solid #000;
    		top:160px;
    		left:170px;
    	}
    
    then
    <div id="iframe_mask">
      <iframe src="myurl" width="930" height="755" 					scrolling="no" frameborder="0"></iframe>
    </div>
    this creates only a vertical scrollbar on the iframe,
    works good in all browsers except ie6, is there a jscript fix for this at all?

    ie6 ignores the overflow hidden and shows the entire iframe.

  2. #2
    Join Date
    Nov 2008
    Posts
    18
    maybe its an issue with div scrolling, i set overflow:hidden and it looks fine. is there a way to just add a verticle scroller to the iframe and not a horizontal scroller? thanks

  3. #3
    Join Date
    Nov 2008
    Posts
    18
    i am retarded, overflow-y:scrolling; should have been overflow-y:scroll. its early.

  4. #4
    Join Date
    Nov 2008
    Posts
    1
    Quote Originally Posted by cmills83 View Post
    currenty i was trying a css solution like this:

    Code:
    #iframe_mask {
    		position:relative;
    		width:410px;
    		height:469px;
    		overflow-y:scrolling;
    		overflow-x:hidden;
    		left:347px;
    		border:5px solid #000;
    		top:160px;
    		left:170px;
    	}
    
    then
    <div id="iframe_mask">
      <iframe src="myurl" width="930" height="755" 					scrolling="no" frameborder="0"></iframe>
    </div>
    this creates only a vertical scrollbar on the iframe,
    works good in all browsers except ie6, is there a jscript fix for this at all?

    ie6 ignores the overflow hidden and shows the entire iframe.
    just let me know your problem in detail... I will try to solve your issue

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles