Four columns with absolute position : Four Columns « Layout « HTML / CSS






Four columns with absolute position

   


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
#columnLeft {
 position: absolute;
 left:5px;
 width:190px;
 top: 44px;
 background:#fff;
}
#columnInnerLeft {
 position: absolute;
 left: 205px;
 width: 190px;
 top: 44px;
 background: #fff;
 text-align: justify;
 border-width: 0;
}
#columnInnerRight {
 position: absolute;
 left: 405px;
 width: 190px;
 top: 44px;
 background: #fff;
}
#columnRight {
 position: absolute;
 left: 605px;
 width: 190px;
 top: 44px;
 background: #fff;
}
</style>
</head>

<body>
  <div id="columnLeft">
    <h2>Left Column</h2>
<p>This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. 
</p>
  </div>

  <div id="columnInnerLeft">
    <h2>Inner Left Column</h2>
<p>This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. 
</p>
  </div>

  <div id="columnInnerRight">
    <h2>Inner Right Column</h2>

<p>This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. 
</p>
  </div>

  <div id="columnRight">
    <h2>Right Column</h2>

<p>This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. 
This is a text. This is a text. This is a text. This is a text. 
</p>
  </div>
</body>
</html>

   
    
  








Related examples in the same category

1.Main title with four columns under
2.4 columns, all fluid
3.Four columns with footer
4.four column with float, and a footer with clear both
5.Four columns with footer 2
6.Four columns with footer 3
7.Faux Column CSS Layouts - 4 Column - faux-39-4-col
8.Faux Column CSS Layouts - 4 Column - faux-40-4-col
9.Faux Column CSS Layouts - 4 Column - faux-41-4-col
10.Faux Column CSS Layouts - 4 Column - faux-42-4-col
11.Four even columns with two level header
12.Four column layout