I'm new to html and css and am trying to design a website having a fixed banner and sidemenu on every page, and then the contents in a center frame-like environment. At the moment I have everything in fluid form as follows:
<body>
<div id="banner">
<?php
include('banner.html');
?>
</div>
<div id="sidemenu">
<?php
include('sidemenu.html')
?>
</div>
<div id="content">
<?php
include ('content.html')
?>
</div>
</body>
and as part of my style css code I have:
#banner
{
background-color:#6a2b93;
color:#FFDB00;
text-align:right;
font-family:"Times New Roman", Times, serif;
width:100%;
height:10%;
position:fixed;
}
#sidemenu
{
background-color:#6B2B93;
color:#FFDB00;
text-align:left;
font-family:"Times New Roman", Times, serif;
padding-left:2%;
padding-right:1%;
padding-bottom:5px;
height:90%;
width:20%;
position:fixed;
top:10%;
float:left;
overflow: auto;
}
#content
{
background-color:#FFFFFF;
color:#000000;
text-align:justify;
font-family:="Times New Roman", Times, serif;
margin-right:20px;
margin-left:23%;
padding-right:2.5%;
padding-left:2.5%;
padding-bottom:5px;
height:90%;
width:72%;
position:fixed;
top:10%;
float:left;
overflow:auto;
}
Ideally I want to have the height of the banner at 3em, but I cannot seem to find a way of doing so, whilst keeping the auto overflow option on the sidemenu and contents. Is this possible?