How do I create an HTML frame that...?

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Guest
How do I create a frame in html that goes around the whole window and leaves space in the middle. Like a frame that would border the content on all four sides. How would I code that?
 
Okay, Try this:


<html>
<head>
<title>Test</title>
<style>
#mainDIV{
position:absolute;
top:0px;
left:0px;
z-index:1;
width:100%;
height:100%;
}
</style>
</head>

<body>

<div id="mainDIV">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="20" bgcolor="#0066FF">Â*</td>
<td height="20" bgcolor="#0066FF">Â*</td>
<td width="20" height="20" bgcolor="#0066FF">Â*</td>
</tr>
<tr>
<td width="20" bgcolor="#0066FF">Â*</td>
<td>Â*</td>
<td width="20" bgcolor="#0066FF">Â*</td>
</tr>
<tr>
<td width="20" height="20" bgcolor="#0066FF">Â*</td>
<td height="20" bgcolor="#0066FF">Â*</td>
<td width="20" height="20" bgcolor="#0066FF">Â*</td>
</tr>
</table>
</div>
</body>
</html>
 
Okay, Try this:


<html>
<head>
<title>Test</title>
<style>
#mainDIV{
position:absolute;
top:0px;
left:0px;
z-index:1;
width:100%;
height:100%;
}
</style>
</head>

<body>

<div id="mainDIV">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="20" bgcolor="#0066FF">Â*</td>
<td height="20" bgcolor="#0066FF">Â*</td>
<td width="20" height="20" bgcolor="#0066FF">Â*</td>
</tr>
<tr>
<td width="20" bgcolor="#0066FF">Â*</td>
<td>Â*</td>
<td width="20" bgcolor="#0066FF">Â*</td>
</tr>
<tr>
<td width="20" height="20" bgcolor="#0066FF">Â*</td>
<td height="20" bgcolor="#0066FF">Â*</td>
<td width="20" height="20" bgcolor="#0066FF">Â*</td>
</tr>
</table>
</div>
</body>
</html>
 
Back
Top