|
A noob here, sorry. I am trying to position three "column" divs underneath this arrangement, but to no avail. I'd like the columns to be 22.5% width each with probably about 350 px. I just cannot figure out how to do this and I am seriously in need of some guidance -- could someone post some coding to get me through this hurdle?? Basically the reason the columns would be 22.5% in width each is to completely fill the container by 80% (the idea is to make it look like one solid bar underneath, where I can tinker with padding, etc). I have removed all the crazy coding I did before to try and fit the three columns underneath so that someone else can give this a try. Thanks in advance!!
HTML:
<html>
<head>
<link REL=StyleSheet HREF="school.css" TYPE="text/css" MEDIA=screen>
<body>
<div id="container">
<div id="top">
<div id="container1">
<div class="menu">
<ul>
<li><a href="school.html"> HOME </a></li>
<li>|<a href="aboutschool.html"> ABOUT US </a></li>
<li>|<a href="programmes.html"> PROGRAMMES </a></li>
<li>|<a href="products.html"> PRODUCTS </a></li>
<li>|<a href="funding.html"> FUNDING </a></li>
<li>|<a href="booking.html"> BOOKING US </a></li>
</ul>
</div>
</div>
</div>
<div id="container2">
<div id="left"> </div>
<div id="middle"> </div>
</div>
</div>
</body>
</head>
</html>
CSS:
body, html {
width: 100%;
height: 100%
}
body {
margin: 0;
padding: 0;
font-family: arial, helvetica, sans-serif;
font-size: 15 px;
line-height: 1.5 em;
color: #fff;
background: #4F74B0;
text-align: center;
}
#container {
margin: 0 auto;
padding-right: 10%;
padding-left: 10%;
width: 80%
}
#top {
height: 50px;
background: url(topbar.png) repeat-x;
}
#container1 {
margin-top: 25 px;
height: 49 px;
float: right;
}
.menu {
clear: right;
float: right;
margin-top: 25 px;
}
.menu ul {
list-style: none;
padding: 0 px;
margin: 0 px;
}
.menu li {
display: inline;
}
.menu li a {
font-size: 12 px;
font-weight: light;
text-decoration: none;
text-align: right;
color: white;
}
.menu li a:hover {
color: #ACADAD;
}
#middle {
margin-top: 3%;
width: 80%;
height: 300px;
border-style: solid;
border-size: 1px;
border-color: white;
}
#container2
{
margin-top: 0%;
margin-left: 0%;
width: 100%;
display: inline;
}
#left
{
width: 17%;
height: 55%;
background-color: white;
float: left;
margin-right: 2%;
}
#middle
{
margin-top: 2%
width: 80%
height: 50%
border-style: solid;
border-size: 2 px;
border-color: white;
float: left;
}
|