View Single Post
  #245  
Old 02-06-2011, 05:02 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Smart Template v4.4.x

I use this script for IFRAME's - it auto resizes the frame height according to the content, so no need for fixed height...

http://www.phpmix.org/iframe_height_auto_resize

http://www.phpmix.org/iframe_height_auto_resize/iframe_height_auto_resize_the_code

Example usage...

Code:
{* IE7 Compatibility *} {literal} <style type="text/css"> .my_iframe { position:relative; left:0px; top:0px; z-index:0; width:100%; height:auto; opacity:1.0; -moz-opacity:1.0; } </style> {/literal} {* /IE7 Compatibility *} <div class="my_iframe"><iframe src="PATH_TO_CONTENT.html" onload="DYNIFS.resize('my_iframe')" id="my_iframe" name="my_iframe" allowtransparency="true" frameborder="0" scrolling="no" style="background-color:transparent; margin:0px; padding:0px; border:0px; width:100%; height:auto;">Sorry, your browser doesn't support iframes.</iframe></div>
__________________
xcartmods.co.uk
Reply With Quote