Elxis CMS Forum
Support => General => Topic started by: ROUBOS on June 11, 2011, 05:40:15
-
???
hi here is my css
it's for the top menu. Everything works fine, apart from the active side of things. When I click on a button, the page opens up, but my button does not keep the background image as per the hover.
this is how I load the module: <?php mosLoadModules('top', 0); ?>
can someone see anything that could fix it?
ul.mainlevel-nav {
overflow:hidden;
margin: 0px;
padding: 0px;
}
ul.mainlevel-nav li {
float: left;
margin: 0px;
padding: 0px;
}
ul.mainlevel-nav li a.mainlevel-nav:link,
ul.mainlevel-nav li a.mainlevel-nav:visited {
font-size: 14pt;
color: #fff;
font-family: tahoma,verdana,arial,sans-serif;
text-decoration: none;
display:block;
padding: 0px 15px;
line-height:50px;
}
ul.mainlevel-nav li a.mainlevel-nav:hover {
color: #fff;
background: url(../images/menu_bg_over.png) top left repeat-x;
}
ul.mainlevel-nav li #active_menu.mainlevel-nav {
background: url(../images/menu_bg_over.png) top left repeat-x;
}
-
Change into index.php file of your template the line <?php mosLoadModules('top', 0); ?> with this <?php mosLoadModules('top', -2); ?>
-
tried it. does not work.
funny cause I tried -1, 0, -2
not doing it
and I have the module parameter set to Flat list
-
fixed it,
had to change:
ul.mainlevel-nav li #active_menu.mainlevel-nav {
background: url(../images/menu_bg_over.png) top left repeat-x;
}
to
ul.mainlevel-nav li #active_menu-nav {
background:url('../images/menu_bg_over.png') top left repeat-x;
}
removed the .mainlevel
-
does not work on the home button, works on all other menu items.
-
Try that one :
a#active_menu-nav {
background:url('../images/menu_bg_over.png') top left repeat-x;
}