No replies
listerd
Offline
Regular
London
Last seen: 9 years 30 weeks ago
London
Timezone: GMT-5
Joined: 2007-02-08
Posts: 49
Points: 20

What I would like to do is place 6 columns within the main column of this CSS Liquid Layout:

NB - this code comes from Dynamic Drive and can be found here: http://www.dynamicdrive.com/style/layouts/item/css-liquid-layout-33-fluid-fluid-fluid/

I guess the easiest way would be to split and create more columns?

Thanks for all replies!!

(The reason for the six columns in to have 6 different subjects in the main column.)

<!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 Liquid Layout #3.3- (Fluid-Fluid-Fluid)</title>
<style type="text/css">
 
 
body{
margin:0;
padding:0;
line-height: 1.5em;
}
 
b{font-size: 110%;}
em{color: red;}
 
 
#topsection{
background: #EAEAEA;
height: 90px; /*Height of top section*/
}
 
#topsection h1{
margin: 0;
padding-top: 15px;
}
 
#contentwrapper{
float: left;
width: 100%;
}
 
#contentcolumn{
margin: 0 15% 0 20%; /*Margins for content column. Should be "0 RightColumnWidth 0 LeftColumnWidth*/
}
 
#leftcolumn{
float: left;
width: 20%; /*Width of left column in percentage*/
margin-left: -100%;
background: #C8FC98;
}
 
#rightcolumn{
float: left;
width: 15%; /*Width of right column in pixels*/
margin-left: -15%; /*Set margin to that of -(RightColumnWidth)*/
background: #FDE95E;
}
 
#footer{
clear: left;
width: 100%;
background: black;
color: #FFF;
text-align: center;
padding: 4px 0;
}
 
#footer a{
color: #FFFF80;
}
 
.innertube{
margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/
margin-top: 0;
}
 
</style>
 
</head>

And this is the body

<body>
<div id="maincontainer">
 
<div id="topsection"><div class="innertube"><h1>CSS Liquid Layout #3.3- (Fluid-Fluid-Fluid)</h1></div></div>
 
<div id="contentwrapper">
<div id="contentcolumn">
<div class="innertube"><b>Content Column: <em>Fluid</em></b> <script type="text/javascript">filltext(45)</script></div>
</div>
</div>
 
<div id="leftcolumn">
<div class="innertube"><b>Left Column: <em>20%</em></b> <script type="text/javascript">filltext(20)</script></div>
 
</div>
 
<div id="rightcolumn">
<div class="innertube"><b>Right Column: <em>15%</em></b> <script type="text/javascript">filltext(15)</script></div>
</div>
 
<div id="footer"><a href="http://www.dynamicdrive.com/style/">Dynamic Drive CSS Library</a></div>
 
</div>
</body>
</html>

Thanks!!!!!!!