JewelsInVa
08-18-2004, 01:59 PM
Ok, so this is my first attempt at using CSS instead of tables for designing a page, so please be kind :)
I am working on redoing the template for a site I'm currently working on, but I can't quite figure out how to get the some things positioned correctly. IN IE, there is space between the top logo picture and the menu buttons as well as space between the menu buttons and the content. Plus, the border around the whole section seems to disappear at the bottom.
The footer is at the bottom like it should be, but if I have a lot of content (if you click on accreditation, you'll definitley see the problem), it's overlapping. I want it separate from the rest of the site, because the links go to the city's site, not within the site I'm designing.
In Netscape 7.1, it's not too bad, but the older version I tested it on, 4.79 i believe, well it looked horrible.
I know I probably haven't done some things right, so I putting this out the old pros :) I hope you can help!
here's a link a sample page (created by a template) and the CSS. The code to the template I created in dreamweaver is at the end of this message. I took out some code for readability.
http://hpd.athamptonroads.com/test/about_us/index.html
http://hpd.athamptonroads.com/test/hampton.css
by the way, if you start browsing around the site, it's in progress, i've only completed about half the content so far. The site needs to be liquid, per the customer's request, and they don't want to stretch horizontally either. It has to be beautiful in 800x600. And it needs to look about the same in old and new browsers...so I'm really giving myself headaches trying to do all this!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Hampton Police Department</title>
<!-- TemplateEndEditable -->
<link rel="STYLESHEET" type="text/css" href="../hampton.css">
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
<body>
<div align="left" class="bordertable"> <!--Makes a black border around the page -->
<div class="leftmenu">
<a href="http://hpd.athamptonroads.com/test/index.html">
<img src="../images/hpd_logo_left.gif" alt="Hampton Police Department Logo" width="148" border="0"></a>
<!-- TemplateBeginEditable name="menu" -->
<p class="menuitem1">MENU TITLE</p>
<a title="" href="" class="menuitem1">1st Menu</a><br>
<a title="" href="" class="menuitem2">1st Sub-Menu</a><br>
<a title="" href="" class="menuitem2">2nd Sub-Menu</a><br>
<a title="" href="" class="menuitem1">2nd Menu</a><br>
<a title="" href="" class="menuitem1">3rd Menu</a><br>
<a title="" href="" class="menuitem1">4th Menu</a>
<!-- TemplateEndEditable -->
</div> <!--end menu-->
<div class="rightside">
<div class="righttop">
<img src="../images/hpd_logo_top.gif" alt="Hampton Police Department Logo" width="612" height="118">
</div> <!--end right top-->
<div class="rightmiddle"a>
<!--7 images with rollover that I took out for readability-->
</div> <!--end right middle-->
<div class="rightbottom">
<!-- TemplateBeginEditable name="body" -->
verbiage or whatever verbiage or whatever verbiage or whatever
<!-- TemplateEndEditable -->
</div> <!--end right bottom-->
</div> <!--end right site-->
</div> <!--end border-->
<div class="footerarea">
<a href="http://www.hampton.gov/" title="City of Hampton website" class="hampton">www.hampton.gov</a><br>
<a href="http://www.hampton.gov/citizen_information.html" title="Resident" class="hampton">Resident</a> |
<a href="http://www.hampton.gov/visitor_information.html" title="Visitor" class="hampton">Visitor</a> |
<a href="http://www.hampton.gov/business_information.html" title="Business" class="hampton">Business</a>
</div> <!--end footer-->
</body>
</html>
I am working on redoing the template for a site I'm currently working on, but I can't quite figure out how to get the some things positioned correctly. IN IE, there is space between the top logo picture and the menu buttons as well as space between the menu buttons and the content. Plus, the border around the whole section seems to disappear at the bottom.
The footer is at the bottom like it should be, but if I have a lot of content (if you click on accreditation, you'll definitley see the problem), it's overlapping. I want it separate from the rest of the site, because the links go to the city's site, not within the site I'm designing.
In Netscape 7.1, it's not too bad, but the older version I tested it on, 4.79 i believe, well it looked horrible.
I know I probably haven't done some things right, so I putting this out the old pros :) I hope you can help!
here's a link a sample page (created by a template) and the CSS. The code to the template I created in dreamweaver is at the end of this message. I took out some code for readability.
http://hpd.athamptonroads.com/test/about_us/index.html
http://hpd.athamptonroads.com/test/hampton.css
by the way, if you start browsing around the site, it's in progress, i've only completed about half the content so far. The site needs to be liquid, per the customer's request, and they don't want to stretch horizontally either. It has to be beautiful in 800x600. And it needs to look about the same in old and new browsers...so I'm really giving myself headaches trying to do all this!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Hampton Police Department</title>
<!-- TemplateEndEditable -->
<link rel="STYLESHEET" type="text/css" href="../hampton.css">
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
<body>
<div align="left" class="bordertable"> <!--Makes a black border around the page -->
<div class="leftmenu">
<a href="http://hpd.athamptonroads.com/test/index.html">
<img src="../images/hpd_logo_left.gif" alt="Hampton Police Department Logo" width="148" border="0"></a>
<!-- TemplateBeginEditable name="menu" -->
<p class="menuitem1">MENU TITLE</p>
<a title="" href="" class="menuitem1">1st Menu</a><br>
<a title="" href="" class="menuitem2">1st Sub-Menu</a><br>
<a title="" href="" class="menuitem2">2nd Sub-Menu</a><br>
<a title="" href="" class="menuitem1">2nd Menu</a><br>
<a title="" href="" class="menuitem1">3rd Menu</a><br>
<a title="" href="" class="menuitem1">4th Menu</a>
<!-- TemplateEndEditable -->
</div> <!--end menu-->
<div class="rightside">
<div class="righttop">
<img src="../images/hpd_logo_top.gif" alt="Hampton Police Department Logo" width="612" height="118">
</div> <!--end right top-->
<div class="rightmiddle"a>
<!--7 images with rollover that I took out for readability-->
</div> <!--end right middle-->
<div class="rightbottom">
<!-- TemplateBeginEditable name="body" -->
verbiage or whatever verbiage or whatever verbiage or whatever
<!-- TemplateEndEditable -->
</div> <!--end right bottom-->
</div> <!--end right site-->
</div> <!--end border-->
<div class="footerarea">
<a href="http://www.hampton.gov/" title="City of Hampton website" class="hampton">www.hampton.gov</a><br>
<a href="http://www.hampton.gov/citizen_information.html" title="Resident" class="hampton">Resident</a> |
<a href="http://www.hampton.gov/visitor_information.html" title="Visitor" class="hampton">Visitor</a> |
<a href="http://www.hampton.gov/business_information.html" title="Business" class="hampton">Business</a>
</div> <!--end footer-->
</body>
</html>