I have added more divisions since the previous code
HTML
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
div.year1 {background-color:#B0E0E6;color:#000000;}
div.year2 {background-color:#40E0D0;color:#000000;}
div.year3 {background-color:#1E90FF;color:#000000;}
div.year4 {background-color:#0000FF;color:#000000;}
<!-- use multiple selectors-->
</style>
<LINK href="coursestyles.css" title="css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-type"content="text/html;charset=UTF-8">
<meta name="author" content="Philip Rennie">
<title>BSc (Hons) Computing for Internet and Multimedia Coursemap</title>
</head>
<body>
<p class="one"><a href="http://www.rgu.ac.uk/prospectus/disp_ProspectusEntry.cfm?CourseID=BSCMIM&year=2008">BSc (Hons) Computing for Internet and Multimedia</a></p>
<!-- URL for relevant prospectus-->
<p class="one"> Sept 2009 </p>
<div class="year1">
Year one
</div>
<div class="year1">
</div>
<div class="year2">
Year two
</div>
<div class="year2">
</div>
<div class="year3">
Year three
</div>
<div class="year3">
</div>
<div class="year4">
Year four
</div>
<div class="year4">
</div>
</body>
</html>
CSS
HTML Code:
body { background-color: white;}
p.one{text-align:center;}
div.year1 {
border: thin groove;
border-width: thin;
text-align:center;
height:30px;
width: 150px;
top:100px;
left:200px;
position:absolute;
font-size:16pt; }
div.year2 {
border: thin groove;
border-width: thin;
text-align:center;
height:30px;
width: 150px;
top:100px;
left:400px;
position:absolute;
font-size:16pt; }
div.year3 {
border: thin groove;
border-width: thin;
text-align:center;
height:30px;
width: 150px;
top:100px;
left:600px;
position:absolute;
font-size:16pt; }
div.year4 {
border: thin groove;
border-width: thin;
text-align:center;
height:30px;
width: 150px;
top:100px;
left:800px;
position:absolute;
font-size:16pt; }