Hello!
Have you seen Skittles.com recently, or Modernista.com?
They use an iFrame behind a simple navigation menu to drive users across all of their social properties such as Wikipedia, YouTube and Flickr.
I'd like to do the same with my Thematic install, so that I can send users to my Last.fm profile, my Twitter page, my LinkedIn etc, and I've made some progress.
See http://digitalcortex.net/lab (currently testing with Google.com).
In correspondence with Ian over on Twitter, he suggested I use Page Templates, and I've created several pages with this structure:
<?php
/*
Template Name: iFrame
*/
?>
<?php get_header() ?>
<iframe class="iframe" src="http://www.google.com" frameborder="0" scrolling="auto"></iframe>
<?php get_footer() ?>
Styling my iFrame I'm using this in my child theme's CSS:
.iframe {
width: 100%;
height: 768px;
border: 1px solid black;
margin-top: -46px;
margin-bottom: -22px;
margin-left: 0px;
margin-right 0px;
padding: 0px;
}
The problem I've found is that whatever I do or try, the iFrame never exceeds the width of the Main div. I presume because the Main div is called at the end of the Header?
Is there a way to have my iFrame take up all space between the Header and Footer withough changing my Header code? Even better if the iFrame detects the height of its content automatically.
All answers greatly appreciated.
Tom