-
1. Re: html document with four frames
bgupta16 Jul 5, 2013 4:35 AM (in response to steenmikkelsen2)Are you looking for something like this.
See the code below
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style type="text/css">
#Container {
font-family: Verdana, Arial, Helvetica, sans-serif;
border: 1px solid red;
width: 900px;
margin: 0 auto; /*centered*/
overflow: hidden; /*float containment*/
}
#wrapdiv {
width: 900px;
float: left;
}
#div1, #div2 {
width: 400px;
min-height: 300px;
margin: 15px;
border: 4px solid #000;
word-wrap: break-word;
}
#div1 {
float: left;
}
#div2 {
float: right;
}
/**Clear floats after the divs**/
.clear {
clear: both;
visibility: hidden;
line-height: 0;
font-size: 1px;
display: block;
}
</style>
</head>
<body>
<div id="Container">
<div id="wrapdiv">
<div id="div1">
<h2>Cam 1 </h2>
</div>
<div id="div2">
<h2>Cam 2</h2>
</div>
</div>
<div class="clear"></div>
<div id="wrapdiv">
<div id="div1">
<h2>Cam 3</h2>
</div>
<div id="div2">
<h2>Cam 4</h2>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>
Add the script to your page.
HTH
Bhawna




