Gazing into my crystal ball I observed Rahul <>
writing in news:Xns9D9A9A85DF116650A1FC0D7811DDBC81@85.214.73 .210:
> I was used to adding a navbar for navigation etc. by including a
> standard snippet within <body> tags like so:
>
> ###################
><head>
> <link href="topbar.css" rel="stylesheet" type="text/css" />
></head>
>
><body>
><?php include("navbar.html"); ?>
> foo content
></body>
> ###################
>
> But apparantly framesets cannot go within body tags. One of my new
> webpages has four charts on it like so:
>
> http://dl.dropbox.com/u/118481/debug_frames.jpg
>
> ############
><html>
>
><frameset rows="50%,50%">
> <frameset cols="50%,50%">
> <frame src="euclid_jobs_waittimes.html" />
> <frame src="euclid_historic_cpuhrs_share.html" />
> </frameset>
> <frameset cols="50%,50%">
> <frame src="euclid_jobs_servers.html" />
> <frame src="euclid_jobs_runtimes.html" />
> </frameset>
></frameset>
>
></html>
> ################
>
> But now I am lost as to how I can still include the navbar. I can't
> figure out how to combine frames and a html navbar that needs the
> <body> tags. Any tips?
>
>
I see no need for frames here. I would do something like:
<div id="header">
<?php include "nav_inc.php"; ?>
</div>
<div id="waittimes">
<?php include "waittimes.php"; ?>
</div>
<div id="shares">
<?php include "shares.php"; ?>
</div>
<div id="servers">
<?php include "servers.php; ?>
</div>
<div id="runtime">
<?php include "runtime.php"; ?>
</div>
<div id="footer">
<?php "footer_inc.php"; ?>
</div>
Then your CSS:
#header {/* your header styles */}
#waittimes, #shares, #servers, #runtime {width:45%; height:50%;
overflow:scroll;}
#waittimes, #servers {clear:left; float:left;}
#footer {clear:left; /* other footer styles */}
Play around with margins to suit.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share