I have created a button list for the list of our company’s games. The problem is that while it works it effects parts of the main menu list as well. Also It appears on the bottom of the page when I am trying to get it on the top under the main menu list. Here is a link to the page http://superfunproductions.com/games.html
Here is the code on the CSS, I think the margin-top and margin-left are the culprits.
#games{
width:1100px; /*---Give our UL a width ---*/
list-style:none; /*--- Makes the bullets go away ---*/
margin:0; /*--- Take out any default margin on the UL tag ---*/
margin-top: 250px;
margin-left: 125px;
padding:0; /*--- Take out any default padding on the UL tag ---*/
}
#games li{
position: relative;
float:left; /*--- Make the list go horizontal ---*/
margin-left:30px; /*--- Give spacing in between list items ---*/
}
#games li li {
float:none;
position:static;
}
#games li a{
display:block; /*--- Make the entire button are clickable rather than the text alone ---*/
width:165px; /*--- Height of buttons ---*/
height:25px; /*--- Width of buttons ---*/
text-indent: -9999px; /*--- Push the text off screen to hide text---*/
overflow: hidden; /*--- Makes text outside of bounding box hidden ---*/
}
#games ul {
margin-left: -999em;
top: 100%;
left: 0;
position: absolute;
}
#games ul li a {
width: 95px;
}
#games li:hover ul {
margin: 0;
}
/*
The following rules place the "normal"
state image as the background for our anchor tags
*/
#games li#mba a{
background: url(../images/music.png) no-repeat;
width: 165px;
height: 25px;
}
#games li#cc a{
background: url(../images/crystal.png) no-repeat;
width: 175px;
height: 25px;
}
#games li#cb a{
background: url(../images/cuddly.png) no-repeat;
width: 135px;
height: 25px;
}
#games li#smw a{
background: url(../images/snow.png) no-repeat;
width: 150px;
height: 25px;
}
#games li#ac a{
background: url(../images/ac.png) no-repeat;
width: 135px;
height: 25px;
}
#games li#mba a:hover{
background: url(../images/music2.png) no-repeat;
width: 165px;
height: 25px;
}
#games li#cc a:hover{
background: url(../images/crystal2.png) no-repeat;
width: 175px;
height: 25px;
}
#games li#cb a:hover{
background: url(../images/cuddly2.png) no-repeat;
width: 135px;
height: 25px;
}
#games li#smw a:hover{
background: url(../images/snow2.png) no-repeat;
width: 150px;
height: 25px;
}
#games li#ac a:hover{
background: url(../images/ac2.png) no-repeat;
width: 135px;
height: 25px;
}
.clear{
clear:both; /*--- Clears the float of the list items to restore normal document flow ---*/
}
/*
The following rules place the "down"
state image as the background for our anchor tags
when they anchor tag has the class of current
*/
#games li#mba a.current{
background: url(../images/music.png) no-repeat;
cursor:default;
}
#games li#cc a.current{
background: url(../images/crystal.png) no-repeat;
cursor:default;
}
#games li#cb a.current{
background: url(../images/cuddly.png) no-repeat;
cursor:default;
}
#games li#ac a.current{
background: url(../images/ac.png) no-repeat;
cursor:default;
}