[SOLVED] Menu rollover CSS background
Posted: Tue Feb 26, 2008 9:33 pm
I am having problems with my menu setup. Basically i am using the cssmenu.tpl to create the menu. I basically want to have a menu with an image background for each of the menu links (see menu_original image) and then when the user hovers over the menu option it changes to a different image (see menu_hover image).
To give you a better idea of what i mean i have included the following address: http://www.projectseven.com/tutorials/c ... /index.htm
The css i am using is:
I have been able to change the look of the menu, but i have not been able to display any of the images. Any help with this would be great.
To give you a better idea of what i mean i have included the following address: http://www.projectseven.com/tutorials/c ... /index.htm
The css i am using is:
Code: Select all
/* Styling the basic apperance of the menu elements */
#primary-nav a {
display: block;
padding: 5px 10px;
margin: 0px;
background-image: url(images/nav_normal.gif);
background-repeat: no-repeat;
color: #606a70;
text-decoration: none;
background: transparent;
min-height:1em; /* Fixes IE7 whitespace bug*/
}
#primary-nav li, #primary-nav li.menuparent {
background-color: #fff;
min-height:1em; /* Fixes IE7 bug*/
}
/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */
#primary-nav li.menuactive {
background-image: url(images/nav_over.gif);
background-repeat: no-repeat;
}
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav li.menuparent,
#primary-nav li.menuparent:hover,
#primary-nav li.menuparenth {
background-image: url(images/cms/arrow.gif);
background-position: center right;
background-repeat: no-repeat;
}
/* Styling the apperance of menu items on hover */
#primary-nav li:hover,
#primary-nav li.menuh,
#primary-nav li.menuparenth,
#primary-nav li.menuactiveh {
background-image: url(images/nav_over.gif);
background-repeat: no-repeat;
}