Skip to main content

Iframe full height in a wordpress page problems (without scroll bar)



Am trying to get this code







<iframe src="http://www.play-asia.com/paOS-38-19-0,,none,0,0,0,0,trans,000000,left,0,0-49-en-76-5-70-dhf7-6-2-78-2i-90-f8z9-33-iframe_banner-40-6-44-100%2525.html" style="border-style: none; border-width: 0px; border-color: #FFFFFF; padding: 0px; margin: 0px; scrolling: vertical; frameborder: 0;" scrolling="vertical" frameborder="0" width="100%25" height="1428"></iframe>







To fill the page (height wise) and also without the scroll bar ive tryed and tryed to use css without any luck





Anyone have any ideas how/if I do do this? Thanks


Comments

  1. Make the iframe absolutely positioned:

    iframe { position: absolute; top: 0px; left: 0px;}


    You talk about filling the page height-wise but you have a set height. You also talk 'without scrollbars' but you have scrolling turned on. The code above will help your iframe jump out of it's container to fill the page as long as its container is not position: relative

    ReplyDelete
  2. try: style="overflow: none;" as an iframe atribute

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...