Tricia
02-25-2005, 04:44 PM
So I've got this page with the following CSS and HTML:
body {
display: block;
width: 800px;
margin-left: auto;
margin-right: auto;
font-family: arial, helvetica, sans-serif;
font-size: 14px;
background: url(diamondsbck.gif);
border: 2px #003366 double;
margin-top: 10px;
}
a {
color: #6699CC;
text-decoration: none;
}
/*
a:hover {
color: #979BB7;
text-decoration: underline;
}
a:visited {
color: #BEBEBE;
text-decoration: none;
}*/
/*Header Section*/
#header {
background-color: #FFFFFF;
margin: 0;
height: 42px;
padding-top: 5px;
clear: both;
position: relative;
}
/*Site Map*/
#head2 {
text-align: left;
position: absolute;
right: 1%;
padding-top: 2.5%;
}
/*--End Search Area*/
/*Logo Placement*/
#head1 {
height: 42px;
}
#logo {
background-color: #FFFFFF;
}
/*--End Logo Placement*/
#topmenu {
width: 800px;
bottom: 0;
background-color: #003366;
}
#topmenu ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
background-color: #003366;
}
#topmenu li { /* all list items */
float: left;
position: relative;
width: 114.2857px;
background-color: #003366;
}
#topmenu li ul { /* second-level lists */
display: none;
position: absolute;
left: 0;
font-size: 85%;
background-color: #003366;
bottom: 24px;
/*text-align: left;*/
/*top: 24px;*/
}
#topmenu li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
top: auto;
left: auto;
}
#topmenu li a {text-decoration: none;
display: block;
color: #FFFFFF;
background-color: #003366;
padding: 5px;
text-align: center;
}
#topmenu li a:hover {text-decoration: none;
color: #003366;
background-color: #D4E2F6;
text-align: center;
}
/*
li a:active {text-decoration: none;
color: #FFFFFF;
background-color: #003366;
}
*/
#topmenu li:hover ul, li.over ul { /* lists nested under hovered list items
*/
display: block;
text-decoration: none;
color: #003366;
background-color: #D4E2F6;
text-align: left;
top: 24px;
}
/*--End Top Navigation*/
#imagestrip {
border-style: double;
border-width: 0 0 2px 0;
border-color: #003366;
margin: 0;
}
/*--End Header Area*/
/*Center Content Area*/
#center {
background-image: url(diamond.jpg);
background-position: bottom right;
background-repeat: no-repeat;
background-color: #FFFFFF;
border-top: #003366;
}
#content {
font-size: 98%;
line-height: 18px;
margin-left: 20%;
/*width: 60%;*/
padding: 2%;
}
/*Bottom Nav Area*/
#botmenu {
width: 800px;
bottom: 0;
background-color: #003366;
}
#botmenu ul {
padding: 0;
margin: 0;
list-style: none;
background-color: #003366;
}
#botmenu li {
float: left;
position: relative;
width: 160px;
border: #003366;
}
#botmenu li ul { /* second-level lists */
display: none;
position: absolute;
left: 0;
font-size: 90%;
background-color: #003366;
text-align: left;
bottom: 24px;
}
#botmenu li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
top: auto;
left: auto;
}
#botmenu li:hover ul, li.over ul { /* lists nested under hovered list items
*/
display: block;
text-decoration: none;
color: #003366;
background-color: #D4E2F6;
bottom: 24px;
}
#botmenu li a {text-decoration: none;
display: block;
color: #FFFFFF;
background-color: #003366;
padding: 5px;
text-align: center;
}
#botmenu li a:hover {text-decoration: none;
color: #003366;
background-color: #D4E2F6;
}
/*
li a:active {text-decoration: none;
color: #FFFFFF;
background-color: #003366;
}
*/
/*--End Bottom Nav Area*/
html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"
/>
<title>Company Name</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script language="JavaScript" type="text/javascript" src="stuff.js"></script>
</head>
<body>
<div id="header">
<span id="head1">
<img src="logo.jpg" id="logo" width="65" height="38" border="0" alt="Our Logo" />
</span>
<span id="head2"><a href="#">Site Map</a>
</span>
</div>
<div id="topmenu">
<ul id="topnav">
<li><a href="#">Home</a></li>
<li><a href="#">About us</a>
<ul>
<li><a href="#">At A Glance</a></li>
<li><a href="#">History</a></li>
<li><a href="#">Leadership</a></li>
<li><a href="#">Corporate Council</a></li>
<li><a href="#">Culture</a></li>
</ul>
</li>
<li><a href="#">Solutions</a>
<ul>
<li><a href="#">Services</a></li>
<li><a href="#">IT</a></li>
</ul>
</li>
<li><a href="#">Partners</a>
<ul>
<li><a href="#">1</a></li>
<li><a href="#">1</a></li>
</ul>
</li>
<li><a href="#">Careers</a>
<ul>
<li><a href="#">Employee Perspective</a></li>
<li><a href="#">Benefits</a></li>
<li><a href="#">Opportunities</a></li>
</ul>
</li>
<li><a href="#">News</a>
<ul>
<li><a href="#">Press Releases</a></li>
<li><a href="#">Press Coverage</a></li>
<li><a href="#">Photo Gallery</a></li>
</ul>
</li>
<li><a href="#">Locations</a>
<ul>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
</ul>
</li>
</ul>
</div>
<div id="imagestrip"><img name="banner" src="img0.gif" width="800" height="127" border="0" alt="Making It Happen Since 1987" /></div>
<div id="center">
<div id="content">
<p>
</p>
<p>
</p>
</div>
</div>
<div id="botmenu">
<ul id="botnav">
<li><a href="#">Link</a>
<ul>
<li><a href="#">Contact Us</a></li>
<li><a href="#">Donate</a></li>
<li><a href="#">About US</a></li>
<li><a href="#">About Them</a></li>
<li><a href="#">At A Glance</a></li>
</ul>
</li>
<li><a href="#">Community Relations</a></li>
<li><a href="#">Employee Area</a></li>
<li><a href="#">Client Area</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div id="footer"> All rights reserved.
</div>
</body>
</html>
Im running into a couple of weird things that I cant seem to figure out:
1. When viewed in firefox the background shows up behind the top menu in little slits. If you were to resize the window, the locations of the strange slits change. These do not appear in IE 6.0 (Not worrying about IE 5.5)
2. Top of website is logo and Site Map Link. Want Site Map link to be aligned all the way to the Right and in the Center of the div...any ideas?
3. In IE 6.0 there is a strange space below the banner image and the border of it - where is that coming from? How do I fix?
Thanks for any help you can provide!
body {
display: block;
width: 800px;
margin-left: auto;
margin-right: auto;
font-family: arial, helvetica, sans-serif;
font-size: 14px;
background: url(diamondsbck.gif);
border: 2px #003366 double;
margin-top: 10px;
}
a {
color: #6699CC;
text-decoration: none;
}
/*
a:hover {
color: #979BB7;
text-decoration: underline;
}
a:visited {
color: #BEBEBE;
text-decoration: none;
}*/
/*Header Section*/
#header {
background-color: #FFFFFF;
margin: 0;
height: 42px;
padding-top: 5px;
clear: both;
position: relative;
}
/*Site Map*/
#head2 {
text-align: left;
position: absolute;
right: 1%;
padding-top: 2.5%;
}
/*--End Search Area*/
/*Logo Placement*/
#head1 {
height: 42px;
}
#logo {
background-color: #FFFFFF;
}
/*--End Logo Placement*/
#topmenu {
width: 800px;
bottom: 0;
background-color: #003366;
}
#topmenu ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
background-color: #003366;
}
#topmenu li { /* all list items */
float: left;
position: relative;
width: 114.2857px;
background-color: #003366;
}
#topmenu li ul { /* second-level lists */
display: none;
position: absolute;
left: 0;
font-size: 85%;
background-color: #003366;
bottom: 24px;
/*text-align: left;*/
/*top: 24px;*/
}
#topmenu li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
top: auto;
left: auto;
}
#topmenu li a {text-decoration: none;
display: block;
color: #FFFFFF;
background-color: #003366;
padding: 5px;
text-align: center;
}
#topmenu li a:hover {text-decoration: none;
color: #003366;
background-color: #D4E2F6;
text-align: center;
}
/*
li a:active {text-decoration: none;
color: #FFFFFF;
background-color: #003366;
}
*/
#topmenu li:hover ul, li.over ul { /* lists nested under hovered list items
*/
display: block;
text-decoration: none;
color: #003366;
background-color: #D4E2F6;
text-align: left;
top: 24px;
}
/*--End Top Navigation*/
#imagestrip {
border-style: double;
border-width: 0 0 2px 0;
border-color: #003366;
margin: 0;
}
/*--End Header Area*/
/*Center Content Area*/
#center {
background-image: url(diamond.jpg);
background-position: bottom right;
background-repeat: no-repeat;
background-color: #FFFFFF;
border-top: #003366;
}
#content {
font-size: 98%;
line-height: 18px;
margin-left: 20%;
/*width: 60%;*/
padding: 2%;
}
/*Bottom Nav Area*/
#botmenu {
width: 800px;
bottom: 0;
background-color: #003366;
}
#botmenu ul {
padding: 0;
margin: 0;
list-style: none;
background-color: #003366;
}
#botmenu li {
float: left;
position: relative;
width: 160px;
border: #003366;
}
#botmenu li ul { /* second-level lists */
display: none;
position: absolute;
left: 0;
font-size: 90%;
background-color: #003366;
text-align: left;
bottom: 24px;
}
#botmenu li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
top: auto;
left: auto;
}
#botmenu li:hover ul, li.over ul { /* lists nested under hovered list items
*/
display: block;
text-decoration: none;
color: #003366;
background-color: #D4E2F6;
bottom: 24px;
}
#botmenu li a {text-decoration: none;
display: block;
color: #FFFFFF;
background-color: #003366;
padding: 5px;
text-align: center;
}
#botmenu li a:hover {text-decoration: none;
color: #003366;
background-color: #D4E2F6;
}
/*
li a:active {text-decoration: none;
color: #FFFFFF;
background-color: #003366;
}
*/
/*--End Bottom Nav Area*/
html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"
/>
<title>Company Name</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script language="JavaScript" type="text/javascript" src="stuff.js"></script>
</head>
<body>
<div id="header">
<span id="head1">
<img src="logo.jpg" id="logo" width="65" height="38" border="0" alt="Our Logo" />
</span>
<span id="head2"><a href="#">Site Map</a>
</span>
</div>
<div id="topmenu">
<ul id="topnav">
<li><a href="#">Home</a></li>
<li><a href="#">About us</a>
<ul>
<li><a href="#">At A Glance</a></li>
<li><a href="#">History</a></li>
<li><a href="#">Leadership</a></li>
<li><a href="#">Corporate Council</a></li>
<li><a href="#">Culture</a></li>
</ul>
</li>
<li><a href="#">Solutions</a>
<ul>
<li><a href="#">Services</a></li>
<li><a href="#">IT</a></li>
</ul>
</li>
<li><a href="#">Partners</a>
<ul>
<li><a href="#">1</a></li>
<li><a href="#">1</a></li>
</ul>
</li>
<li><a href="#">Careers</a>
<ul>
<li><a href="#">Employee Perspective</a></li>
<li><a href="#">Benefits</a></li>
<li><a href="#">Opportunities</a></li>
</ul>
</li>
<li><a href="#">News</a>
<ul>
<li><a href="#">Press Releases</a></li>
<li><a href="#">Press Coverage</a></li>
<li><a href="#">Photo Gallery</a></li>
</ul>
</li>
<li><a href="#">Locations</a>
<ul>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
</ul>
</li>
</ul>
</div>
<div id="imagestrip"><img name="banner" src="img0.gif" width="800" height="127" border="0" alt="Making It Happen Since 1987" /></div>
<div id="center">
<div id="content">
<p>
</p>
<p>
</p>
</div>
</div>
<div id="botmenu">
<ul id="botnav">
<li><a href="#">Link</a>
<ul>
<li><a href="#">Contact Us</a></li>
<li><a href="#">Donate</a></li>
<li><a href="#">About US</a></li>
<li><a href="#">About Them</a></li>
<li><a href="#">At A Glance</a></li>
</ul>
</li>
<li><a href="#">Community Relations</a></li>
<li><a href="#">Employee Area</a></li>
<li><a href="#">Client Area</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div id="footer"> All rights reserved.
</div>
</body>
</html>
Im running into a couple of weird things that I cant seem to figure out:
1. When viewed in firefox the background shows up behind the top menu in little slits. If you were to resize the window, the locations of the strange slits change. These do not appear in IE 6.0 (Not worrying about IE 5.5)
2. Top of website is logo and Site Map Link. Want Site Map link to be aligned all the way to the Right and in the Center of the div...any ideas?
3. In IE 6.0 there is a strange space below the banner image and the border of it - where is that coming from? How do I fix?
Thanks for any help you can provide!