Forum Moderators: not2easy

Message Too Old, No Replies

css horizontal menu not displaying properly in Firefox

         

jwiz007

11:17 pm on Aug 27, 2008 (gmt 0)

10+ Year Member



Hello,

This is my first post in this forum. I am having problem with my css horizontal menu not displaying properly in Firefox. Here is the html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Douglas Park ¦ Long Beach - Home</title>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link rel="stylesheet" type="text/css" href="default.css" />
</head>
<body>

<div id="outer">

<div id="header">
<img src="images/slogan.jpg" align="right" /></div>

<div id="menu">
<!-- HINT: Set the class of any menu link below to "active" to make it appear active -->
<ul>
<li><a href="index.html" class="active">Home</a></li>
<li><a href="overview.html">Overview</a></li>
<li><a href="location.html">Location</a></li>
<li><a href="sitemap.html">Site Map</a></li>
<li><a href="availabilities.html">Availabilities</a></li>
<li><a href="devel_team.html">Development Team</a></li>
<li><a href="file_cabinet.html">File Cabinet</a></li>
<li><a href="financing.html">Financing</a></li>
<li><a href="news.html">News</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<div id="content">

<!-- Normal content: Stuff that's not going to be put in the left or right column. -->
<div class="contentarea" id="normalcontent">
<div class="contentarea">
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="1024" height="317" valign="top"><img src="images/douglas_park_home.jpg" width="1024" height="317" usemap="#Map" /></td>
</tr>
</table>
</div>
</div>
<div class="divider2"></div>
<div id="header-bottom">
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="494">&nbsp;</td>
<td width="80" valign="top"><img src="images/leed_logo.jpg" width="80" height="80" /></td>
<td width="248">&nbsp;</td>
<td width="202" valign="top"><img src="images/rreef_small.jpg" width="202" height="80" /></td>
</tr>
</table>
</div>
<div id="footer">
<div class="left">&copy; 2008 Douglas Park. All rights reserved. Website by <a href="http://www.cbre.com/" target="_blank">CB Richard Ellis</a></div>

</div>
</div>
</div>

</div>

<map name="Map" id="Map">
<area shape="rect" coords="608,115,711,219" href="office_sitemap.html" target="_self" alt="" />
<area shape="rect" coords="815,115,919,219" href="industrial_sitemap.html" target="_self" alt="" />
</map></body>
</html>

Here is the CSS code:

*
{
padding: 0em;
margin: 0em;
}

body
{
background: #333333;
padding: 35px 0px 35px 0px;
}

body,input
{
font-size: 10pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #333333;
font-weight: normal;
text-align:justify;
}
.text
{
font-size: 10pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #333333;
font-weight: normal;
text-align:justify;
}

p
{
line-height: 1.5em;
margin-bottom: 1.0em;
text-align: left;
}

a
{
color: #000000;
text-decoration: underline;
}

a:hover
{
text-decoration: none;
color:#FF0000
}

a:active
{
color:#FF0000
}

h3 span
{
font-weight: normal;
}

h3,h4
{
display: inline;
font-weight: bold;
background-repeat: no-repeat;
background-position: right;
}

h3
{
font-size: 1.7em;
padding-right: 34px;
}

h4
{
font-size: 1.2em;
padding-right: 28px;
background-image: url('images/db2.gif');
}

.contentarea
{
padding-top: 1.3em;
}

img
{
border: solid 1px #6F5230;
}

img.left
{
position: relative;
float: left;
margin: 0em 1.8em 1.4em 0em;
}

img.right
{
position: relative;
float: right;
margin: 0em 0em 1.8em 1.8em;
}

.divider1
{
position: relative;
background: #fff url('images/border2.gif') repeat-x;
height: 14px;
margin: 2.0em 0em 1.5em 0em;
clear: both;
}

.divider2
{
position: relative;
height: 1px;
border-bottom: solid 1px #eaeaea;
margin: 2.0em 0em 2.0em 0em;
}

.post .details
{
position: relative;
top: -1.5em;
font-size: 0.8em;
color: #787878;
}

.post ul.controls
{
clear: both;
}

.post ul.controls li
{
display: inline;
font-size: 0.8em;
}

.post ul.controls li a
{
background-repeat: no-repeat;
background-position: left;
padding: 0em 1.0em 0em 20px;
}

.post ul.controls li a.printerfriendly
{
background-image: url('images/icon-printerfriendly.gif');
}

.post ul.controls li a.comments
{
background-image: url('images/icon-comments.gif');
}

.post ul.controls li a.more
{
background-image: url('images/icon-more.gif');
}

.box
{
position: relative;
background: #FDFCF6 url('images/boxbg.gif') repeat-x;
left: -1.5em;
top: -1.5em;
padding: 1.5em;
border-bottom: solid 1px #E1D2BD;
margin-bottom: 1.0em;
}

ul.linklist
{
list-style: none;
}

ul.linklist li
{
line-height: 2.0em;
}

#upbg
{
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 275px;
background: #fff url('images/bg2.jpg') repeat-x;
z-index: 1;
}

#outer
{
z-index: 2;
position: relative;
/*
The width value below controls the overall width of the design. By default it's set to 82%
(so it'll take up 82% of the browser window's width). You can set it to a different percentage
value (70%, 90%, etc.) or even a pixel value (760px, 800px, etc.) to enforce a fixed width.
*/
width: 1024px;
height: auto;
border: solid 7px #fff;
background-color: #fff;
margin: 0 auto;
}

#header
{
position: relative;
width: 1024px;
height: auto;
background: #ffffff url(images/dp-logo.jpg) no-repeat;
margin-bottom: 2px;
}

#header-bottom
{
position: relative;
width: 1024px;
height: auto;
background: #ffffff url(images/newcastle-logo.jpg) no-repeat;
margin-bottom: 2px;
}
.align-right {
float:right;
background: #ffffff
}
img a {
border: none;
}
img {
border: none;
}

#headercontent
{
position: absolute;
bottom: 0em;
padding: 0em 2.0em 1.3em 2.0em;
}

#headercontent h1
{
font-weight: normal;
color: #fff;
font-size: 2.5em;
}

#headercontent h1 sup
{
color: #777;
}

#headercontent h2
{
font-size: 1.0em;
font-weight: normal;
color: #aaa;
}

#search
{
position: absolute;
background:#FFFFFF url(images/slogan.jpg) no-repeat;
top: 5.5em;
height: 9.0em;
right: 2.0em;
padding-right: 0.0em;
}

#search input.text
{
margin-right: 0.5em;
vertical-align: middle;
border-top: solid 1px #000000;
border-right: 0px;
border-bottom: solid 1px #777777;
border-left: 0px;
padding: 0.15em;
width: 10.0em;
}

#search input.submit
{
background: #939B00 url('images/buttonbg.gif') repeat-x;
border: solid 1px #5F6800;
font-weight: bold;
padding: 0.25em;
font-size: 0.8em;
color: #F2F3DE;
vertical-align: middle;
}

#headerpic
{
position: relative;
height: 109px;
background: #fff url('images/hdrpic.jpg') no-repeat top left;
border-top:#000000;
margin-bottom: 2px;
}

#menu
{
position: relative;
background: #ebe6c6 url('images/menubg.gif') repeat-x top left;
height: 3.5em;
padding: 0em 2.0em 0em 2.0em;
margin-bottom: 2px;
}

#menu ul
{
position: absolute;
top: 1.1em;
}

#menu ul li
{
position: relative;
display: inline;
background: transparent url(images/vertical.gif) center right no-repeat;
}

#menu ul li a
{
padding: 0.5em 1.0em 0.9em 1.0em;
color: #000;
text-decoration: none;
}

#menu ul li a:hover
{
text-decoration: underline;
background: #557c55 url('images/menuover.gif') repeat-x top left;
}

#menu ul li a.active
{
background: #557c55 url('images/menuactive.gif') repeat-x top left;
}

#menubottom
{
background: #fff url('images/border1.gif') repeat-x;
height: 14px;
margin-bottom: 1.5em;
}

#overview
{

}

#content
{
width: 1024px;
height: auto;
padding-top: 1.5em;
padding-bottom: 0em;
}

#primarycontainer
{
float: left;
margin-right: -18.0em;
width: 100%;
}

#primarycontent
{
margin: 1.5em 22.0em 0em 0em;
}

#secondarycontent
{
margin-top: 1.5em;
float: right;
width: 18.0em;
}

#footer
{
position: relative;
height: 2.0em;
clear: both;
margin: 0 auto;
padding-top: 3.0em;
background: #fff url('images/border2.gif') repeat-x 0em 1.5em;
font-size: 0.8em;
}

#footer .left
{
position: absolute;
left: 2.0em;
bottom: 1.2em;
}

#footer .right
{
position: absolute;
right: 12px;
bottom: 13px;
}

/* datasheet------------------*/
table.helpT
{ text-align: center;
font-family: Verdana;
font-weight: normal;
font-size: 11px;
color: #404040;
width: 500px;
background-color: #fafafa;
border: 1px #6699CC solid;
border-collapse: collapse;
border-spacing: 0px; }

td.helpHed
{ border-bottom: 2px solid #6699CC;
border-left: 1px solid #6699CC;
background-color: #CFDEEA;
text-align: center;
text-indent: 5px;
font-family: Verdana;
font-size: 11px;
color: #404040; }

td.helpHef
{ border-bottom: 2px solid #6699CC;
border-left: 1px solid #6699CC;
background-color: #557C55;
text-align: left;
font-family: Verdana;
font-size: 11px;
color: #ffffff; }

td.helpHey
{ border-bottom: 2px solid #6699CC;
border-left: 1px solid #6699CC;
background-color: #ffffff;
text-align: left;
font-family: Verdana;
font-weight: bold;
font-size: 10px;
color: #000000; }

td.helpBod
{ border-bottom: 1px solid #9CF;
border-top: 0px;
border-left: 1px solid #9CF;
border-right: 0px;
text-align: left;
text-indent: 10px;
font-family: Verdana, sans-serif, Arial;
font-weight: normal;
font-size: 11px;
color: #404040;
background-color: #fafafa; }

table.sofT
{ text-align: center;
font-family: Verdana;
font-weight: normal;
font-size: 11px;
color: #404040;
width: 700px;
margin-top: 20px;
background-color: #fafafa;
border: 1px #6699CC solid;
border-collapse: collapse;
border-spacing: 0px; }

Try to view it in Firefox and you will see the problem.

Thank you....

[edited by: encyclo at 10:17 am (utc) on Aug. 28, 2008]
[edit reason] no personal links please, see posting guidelines [/edit]

Marshall

11:42 pm on Aug 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld jwiz007.

FYI - you are not allowed to post links TOS [webmasterworld.com]

That being said, what exactly is the problem?

Marshall

jwiz007

2:07 am on Aug 28, 2008 (gmt 0)

10+ Year Member



I can not view my menu in Firefox, Opera, or NetScape. The menu goes to the top. Works fine in IE.

Thanks.

jwiz007

2:23 am on Aug 28, 2008 (gmt 0)

10+ Year Member



Can I upload screenshots on this site?

alt131

3:24 am on Aug 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can I upload screenshots on this site?

No - as Marshall has said, read the terms of service. I suggest also reading the Guide to Posting HTML and CSS [webmasterworld.com] and the CSS Troubleshooting refresher.. [webmasterworld.com] pinned at the top of the forum. That will tell you what can/not be posted, and how to strip code to the minimum needed to identify exactly what the problem is.

Marshall and I are saying similar things because we would like to help.

The above links will also send you to validate your xhtml and css [validator.w3.org]. If you do validate your xhtml and think about how the error messages relate to your css, your problem should resolve itself.

Otherwise, of course, post back.