Mineer
Expert Member
Hi all
Hope some can help. basically I am try out website design this is what I got so far. My question tho is instead of repeating all of the code for each pages could I somehow put what is in the "<div id="rightside">" tag in a separate file, and then just pull up the required pages as required when the client clicks on the links on the leftside?, hope I am making sense.
also any tips and advise would be also be welcomed, thanks in advance, (I know I am referencing the same page in the links, think of is as just place holders )
Hope some can help. basically I am try out website design this is what I got so far. My question tho is instead of repeating all of the code for each pages could I somehow put what is in the "<div id="rightside">" tag in a separate file, and then just pull up the required pages as required when the client clicks on the links on the leftside?, hope I am making sense.
also any tips and advise would be also be welcomed, thanks in advance, (I know I am referencing the same page in the links, think of is as just place holders )
Code:
* {margin:0px;padding:0px;top:0px;left:0px;}
body{
text-align: center;
background-color: #fff;
}
#central{
margin-right: auto;
margin-left: auto;
margin-top: 10px;
position: relative;
width: 1000px;
text-align: left;
}
#leftside{float: left;
width:200px;
height:900px;
background-color: #c95202;
}
#rightside{
margin-top: 250px;
float: right;
width:800px;
height:650px;
background-color:#cc6700;
position: relative;
color:#fff;
}
#header{
background-image: url(images/header.jpg);
height: 250px;
width: 1000px;
position: relative;
}
#middle{
position: absolute;
top: 250px;
}
#leftside img{
margin-top:2px;}
#menu{
position: absolute;
height: 306px;
width: 137px;
left: 50px;
top: 0px;
background-color: #c95202;
margin-top:2px;
}
#leftside ul{
list-style-position: outside;
list-style-type: none;
margin-top: 40px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #c95202;
}
#leftside li{
height: 50px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #FFFFFF;
list-style-position: outside;
list-style-type: none;
}
#leftside ul a{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bolder;
color: #FFFFFF;
text-decoration: none;
height: 50px;
width: 117px;
padding-left: 20px;
padding-top: 10px;
display: block;
}
#leftside a:hover{background-color:#ff6600;}
#rightside h1{
color:#fff;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
padding: 20px;
text-align:center;
}
#rightside p{
color:#fff;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
padding: 20px;
}
#rightside a{color:#fff;}
#rightside a:hover{background-color:#ff6600;}
#footer{
position: absolute;
height: 58px;
width: 388px;
top: 560px;
background-color: #c95202;
text-align:center;
}
#footer p{
color:#fff;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
padding: 20px;
}
#footer a{color:#fff;}
HTML:
<!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">
<head>
<title>Thathani primary school</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="central">
<div id="leftside">
<div id="header"></div>
<div id="middle">
<div id="menu">
<ul>
<li><a href="index.htm">School History</a></li>
<li><a href="index.htm">Sports & Culture</a></li>
<li><a href="index.htm">Academic Achievements </a></li>
<li><a href="index.htm">School News</a></li>
<li><a href="index.htm">School Year Calander</a></li>
<li><a href="index.htm">Academic Allocation</a></li>
<li><a href="index.htm">Headmaster Message</a></li>
<li><a href="index.htm">Chairman/lady SGB Message</a></li>
</ul>
</div>
</div>
</div>
<div id="rightside">
<h1>Thathani Primary School <br />Rise and shine.</h1>
<h1>HISTORY OF SCHOOL</h1>
<p>
Thathani Primary School was built in 1960. Various principals have led the school. It had its great moments well as low moments. Mrs.IN.Mbhekeni has led the school in the ‘80s and the school reached its high levels through her leadership, winning competitions in music, athletics, soccer and netball. The girl guide movement was one of the school passions. Thathani was formerly a lower primary but changed that in the early ‘90s to become a high primary starting from Grade 1 to Grade 7. She retired in 1994.
</p>
<p>
Mr.Z.E. Zwane took over in July 1997. The school managed to get a sponsor “ Adopt-A-School” which built a science Lab, a library and Administration block.MR. Zwane retired in 30 March 2011. Mrs I.N.Madiba took reign in 01 August 2011. The School is promising to reclaim its former glory. The upgrades of the school environment and renovations of classes have been done. The school has won one of the best competitions and won R25 000.00 to mentioned few from “CAN DO”.
</p>
</div>
</div>
</body>
</html>
Last edited: