fodo
12-03-2008, 12:22 PM
I am using layout 3.3 fluid/fluid/fluid
I want to style the left and right cols and have applied css rules, but they have no effect.
Can any one help please?
mark up
<body>
<div id="maincontainer">
<div id="contentwrapper">
<div id="contentcolumn">
<div class="innertube"><img border="0" src="images/SHCBook.jpg" width="237" height="317" alt="Successful Home Catering"/></div>
</div>
</div>
<div id="leftcolumn">
<div class="innertube">
<br />
<br />
<br />
<br />
<ul>
<li class="left">Getting Started</li>
<li>Developing Yowr Own Personal Style</li>
<li>Shopping</li>
<li>General Planning</li>
<li>The Young Market</li>
<li>International Cusine</li>
<li>Catering for Commercial Outlets</li>
<li>Events and Menus</li>
<li>Case Studies</li>
<li>Recipes</li>
<li>How to Purchase</li>
</div>
</div>
<div id="rightcolumn">
<div class="innertube">
<p class="right">Hello and welcome to Suuccessful Home Catering, the essentail and most valuable publication for you if you are interested in setting up a business in this growing and most exciting market.</p>
<p class="right">Previously released as a highly successful series of monthly lessons, we have taken the modules and combined them into an easy to understand and simple to use single publication.<p/>
<p class="right">This will take you through all the key areas you will need to know in the setting up of your successful home catering business.</p>
</div>
</div>
</div>
</body>
</html>
CSS
body{
margin: 0;
padding: 0;
background: #6EC6F1;
text-align: center;
}
#maincontainer{
width: 900px;
margin: 0 auto;
padding-top: 5px;
background: url('../images/backgroundx900.jpg');
background-repeat: no-repeat;
width: 900px;
height: 692px;
}
#contentwrapper{
float: left;
width: 100%;
/*background: url('../images/bookx900.jpg');*/
background-repeat: no-repeat;
width: 900px;
height: 692px;
}
#contentcolumn{
margin: 100px 30% 0 30%; /*Margins for content column. Should be "0 RightColumnWidth 0 LeftColumnWidth*/
}
#leftcolumn{
float: left;
width: 30%; /*Width of left column in percentage*/
margin-left: -100%;
margin-top:100px;
background: url('../images/Appetisers.jpg');
text-align: left;
}
#leftcolumn ul{
list-style-type:none;
font-size: 12px;
}
.left li{
margin-bottom: 5px;
font-size: 12px;
font-weight: bold;
color:#000000;
}
#rightcolumn{
float: left;
width: 30%; /*Width of right column in pixels*/
margin-left: -30%; /*Set margin to that of -(RightColumnWidth)*/
margin-top:100px;
background: #FDE95E;
}
.right p{
font-size: 12px;
font-weight: bold;
text-align:left;
color:#000000;
}
.innertube{
margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/
margin-top: 0;
}
I want to style the left and right cols and have applied css rules, but they have no effect.
Can any one help please?
mark up
<body>
<div id="maincontainer">
<div id="contentwrapper">
<div id="contentcolumn">
<div class="innertube"><img border="0" src="images/SHCBook.jpg" width="237" height="317" alt="Successful Home Catering"/></div>
</div>
</div>
<div id="leftcolumn">
<div class="innertube">
<br />
<br />
<br />
<br />
<ul>
<li class="left">Getting Started</li>
<li>Developing Yowr Own Personal Style</li>
<li>Shopping</li>
<li>General Planning</li>
<li>The Young Market</li>
<li>International Cusine</li>
<li>Catering for Commercial Outlets</li>
<li>Events and Menus</li>
<li>Case Studies</li>
<li>Recipes</li>
<li>How to Purchase</li>
</div>
</div>
<div id="rightcolumn">
<div class="innertube">
<p class="right">Hello and welcome to Suuccessful Home Catering, the essentail and most valuable publication for you if you are interested in setting up a business in this growing and most exciting market.</p>
<p class="right">Previously released as a highly successful series of monthly lessons, we have taken the modules and combined them into an easy to understand and simple to use single publication.<p/>
<p class="right">This will take you through all the key areas you will need to know in the setting up of your successful home catering business.</p>
</div>
</div>
</div>
</body>
</html>
CSS
body{
margin: 0;
padding: 0;
background: #6EC6F1;
text-align: center;
}
#maincontainer{
width: 900px;
margin: 0 auto;
padding-top: 5px;
background: url('../images/backgroundx900.jpg');
background-repeat: no-repeat;
width: 900px;
height: 692px;
}
#contentwrapper{
float: left;
width: 100%;
/*background: url('../images/bookx900.jpg');*/
background-repeat: no-repeat;
width: 900px;
height: 692px;
}
#contentcolumn{
margin: 100px 30% 0 30%; /*Margins for content column. Should be "0 RightColumnWidth 0 LeftColumnWidth*/
}
#leftcolumn{
float: left;
width: 30%; /*Width of left column in percentage*/
margin-left: -100%;
margin-top:100px;
background: url('../images/Appetisers.jpg');
text-align: left;
}
#leftcolumn ul{
list-style-type:none;
font-size: 12px;
}
.left li{
margin-bottom: 5px;
font-size: 12px;
font-weight: bold;
color:#000000;
}
#rightcolumn{
float: left;
width: 30%; /*Width of right column in pixels*/
margin-left: -30%; /*Set margin to that of -(RightColumnWidth)*/
margin-top:100px;
background: #FDE95E;
}
.right p{
font-size: 12px;
font-weight: bold;
text-align:left;
color:#000000;
}
.innertube{
margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/
margin-top: 0;
}