html - Trying To Use A PHP Header with an IFrame -


i trying add blog website , decided create google blog , use full screen iframe display on page. works fine decided add websites header. have header followed iframe able treat header & iframe 1 single page. right header visible , can scroll through iframe header showing above not visibly pleasant experience. here code:

<?php include("header.php"); ?>       <html>      <head>     <style type="text/css">         body         {             margin:   0;             overflow: hidden;         }          #iframe1         {             height:   80%;             left:     0px;             position: absolute;             top:      180px;             width:    100%;          }     </style> </head>  <body>     <iframe id="iframe1" src="http://xxxx.blogspot.com/" frameborder="0"></iframe> </body> </html> 

here header code:

 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">  <head>  <meta name="google-site-verification"=xxx />  <script type="text/javascript">   var _gaq = _gaq || [];  _gaq.push(['_setaccount', 'ua-26023641-1']);  _gaq.push(['_trackpageview']);   (function() {  var ga = document.createelement('script'); ga.type = 'text/javascript'; ga.async =  true;  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') +  '.google-analytics.com/ga.js'; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(ga, s);  })();  </script> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>xxx &ndash; <?php if ($page != 'home') { echo $page; }  else { echo 'xxxxs'; } ?></title> <meta name="description" content="xxx." /> <meta name="keywords" content="xxx<?php echo $tags; ?>" />  <link href='http://fonts.googleapis.com/css?family=pt+sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'>  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <!--[if lt ie 9]>  <script type="text/javascript" src="/js/lightview/js/excanvas/excanvas.js"></script> <![endif]--> <script type="text/javascript" src="js/external.js"></script> <script type="text/javascript" src="js/lightview/js/spinners/spinners.js"></script> <script type="text/javascript" src="js/lightview/js/lightview/lightview.js"></script> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box"></script>   <link rel="stylesheet" type="text/css" href="css/hub.css" media="screen" /> <link rel="stylesheet" type="text/css" href="js/lightview/css/lightview/lightview.css"/>   <!--[if ie 7]><link rel="stylesheet" type="text/css" href="css/ie7styles.css" /><![endif]--> <!--[if ie 6]><link rel="stylesheet" type="text/css" href="css/ie6styles.css"  /><![endif]--> <!--[if lte ie 6]><link rel="stylesheet" type="text/css" href="css/ie6styles.css" /><![endif]-->  <link rel="icon" href="favicon.ico" type="image/ico" />  </head> <body>  <div id="header"> <a id="logo" href="/"></a> <ul id="nav">         <li><a href="xx">xx</a></li>         <li><a href="xx">xx</a></li>         <li><a href="xx">xx</a></li>         <li><a href="xx">xx</a></li>         <li><a href="xx">xx</a></li>         <li><a href="xx">xx</a></li>         <li><a href="xx">xx</a></li>         <li><a href="xx">xx</a></li>         <li><a href="xx">xx</a></li>         <li><a href="xx">xx</a></li> </ul> </div>  <div id="content"> 

the problem scroll bar within iframe , disabled on main page body, scrolling scrolling within iframe , not whole page. remove overflow: hidden page body , make iframe stretches height fit contents. way, scrollbar see on page scroll entire page instead of iframe.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -