Request: Help with css/html frame template from Dynamic
Hi,
I've downloaded a ready-made css/html template for a 3 x frame page from dynamic drive (This one: http://www.dynamicdrive.com/style/la...frames-layout/) and I'm in the process of adapting it to my needs. The idea is for the left and right columns to have links that will display their content in the middle (maincontent) frame when clicked, but I can't work out how to code that without breaking the template. When I click on the only link I'm working on at the moment ie: the top, left link ("Our Focus") my content .html document opens in a new window. Can someone help a newbie please? :)
Also, further to this, I'm wondering if I use this method, is it possible to have just one main content .html document and have this template's links zap to a specific section of that document to make updating easier? I'll be using this on an internal intranet for work
Here is the code as I have it so far,
Kind regards
Gilly
Code:
<!--Force IE6 into quirks mode with this comment tag-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Dynamic Drive: CSS Left and Right Frames Layout</title>
<style type="text/css">
body{
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
}
a:link { color: #ffffff; }
a:visited { color: #ffffff; }
a:hover { color: #2EFEF7; }
a:active { color: #00FF40; }
#framecontentLeft, #framecontentRight{
position: absolute;
top: 0;
left: 0;
width: 200px; /*Width of left frame div*/
height: 100%;
overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
background-color: navy;
color: white;
}
#framecontentRight{
left: auto;
right: 0;
width: 150px; /*Width of right frame div*/
overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
background-color: navy;
color: white;
}
#maincontent{
position: fixed;
top: 0;
left: 200px; /*Set left value to WidthOfLeftFrameDiv*/
right: 150px; /*Set right value to WidthOfRightFrameDiv*/
bottom: 0;
overflow: auto;
background: #fff;
}
.innertube{
margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/
}
* html body{ /*IE6 hack*/
padding: 0 150px 0 200px; /*Set value to (0 WidthOfRightFrameDiv 0 WidthOfLeftFrameDiv)*/
}
* html #maincontent{ /*IE6 hack*/
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="framecontentLeft">
<div class="innertube">
<h1>Page Heading</h1><BR>
<h3><ul><li><a href="ourfocus.html" target="maincontent">Our Focus</a></li>
<li><a href="clients.html" target="content">Company Clients</a></li>
<li><a href="contact.html" target="content">Contact Company</a></li>
</ul></h3>
</div>
</div>
<div id="framecontentRight">
<div class="innertube">
<h3>Useful links here</h3>
</div>
</div>
<div id="maincontent">
<div class="innertube">
</div>
</div>
</body>
</html>