My coding is the exact same as the web site, however it comes out different.
Exact same? Not quite...
First, you're using a whole host of deprecated HTML tags. You should ditch the frames, adopt CSS and your page site will behave much better.
If you want to use something like the suckerfish menu which is highly dependent on positioning, it's important to be confident that the browser will render the page properly. This can't be done unless you're using standards compliant code.
There are quite a few errors that are causing what you see with your menu due to some of the changes that you've made. I'm guessing that most of those changes were inadvertent and you really only wanted to make styling changes (colors, fonts, etc...). So, what I would suggest is to restart with the original stylesheet.
So delete everything between the <style></style> tags on your page and add this:
Code:
<style type="text/css">
.suckertreemenu ul{
margin: 0;
padding: 0;
list-style-type: none;
}
/*Top level list items*/
.suckertreemenu ul li{
position: relative;
display: inline;
float: left;
background-color: #F3F3F3; /*overall menu background color*/
}
/*Top level menu link items style*/
.suckertreemenu ul li a{
display: block;
width: 90px; /*Width of top level menu link items*/
padding: 1px 8px;
border: 1px solid black;
border-left-width: 0;
text-decoration: none;
color: navy;
}
/*1st sub level menu*/
.suckertreemenu ul li ul{
left: 0;
position: absolute;
top: 1em; /* no need to change, as true value set by script */
display: block;
visibility: hidden;
}
/*Sub level menu list items (undo style from Top level List Items)*/
.suckertreemenu ul li ul li{
display: list-item;
float: none;
}
/*All subsequent sub menu levels offset after 1st level sub menu */
.suckertreemenu ul li ul li ul{
left: 159px; /* no need to change, as true value set by script */
top: 0;
}
/* Sub level menu links style */
.suckertreemenu ul li ul li a{
display: block;
width: 160px; /*width of sub menu levels*/
color: navy;
text-decoration: none;
padding: 1px 5px;
border: 1px solid #ccc;
}
.suckertreemenu ul li a:hover{
background-color: black;
color: white;
}
/*Background image for top level menu list links */
.suckertreemenu .mainfoldericon{
background: #F3F3F3 url(media/arrow-down.gif) no-repeat center right;
}
/*Background image for subsequent level menu list links */
.suckertreemenu .subfoldericon{
background: #F3F3F3 url(media/arrow-right.gif) no-repeat center right;
}
* html p#iepara{ /*For a paragraph (if any) that immediately follows suckertree menu, add 1em top spacing between the two in IE*/
padding-top: 1em;
}
/* Holly Hack for IE \*/
* html .suckertreemenu ul li { float: left; height: 1%; }
* html .suckertreemenu ul li a { height: 1%; }
/* End */
</style>
Then, you can go back and add the colors back in.
Lastly, please do look into using proper CSS-based techniques to style your page. It'll save you *a lot* of aggravation in the long run. There is a very good reason that things like the <font> tag are deprecated and why tables aren't recommended for layouts.
Bookmarks