[SOLVED] a:active doesn't work!
Posted: Sun Sep 30, 2012 11:00 pm
Hello!
I cannot get the a:active CSS line to actually keep the current clicked link active. The a:hover/link/visited work.
This is my website: http://www.nicocollu.com
My template (HTML/CSS) is constructed by myself.
Before anything, it should be known that the Menu Manager is currently set to:
cssmenu.tpl (read only)
(I tried cachable and non-cachable - both do not work with current settings.)
HERE IS THE HTML:
(CSS below.)
<!--Top Menu-->
<div id="topmenu">
{menu number_of_levels="1"}
</div>
<!--Sub Menu-->
<div id="submenu" style="background-image:url(http://www.nicocollu.com/uploads/images ... ubmenu.png);">
{menu start_level='2'}
</div>
THE CSS GOES:
(I've added both the top & submenu as they both have the same issue.)
/* Top Menu */
#topmenu {
background-image:url(http://www.nicocollu.com/uploads/images ... opmenu.png);
background-position:center top;
background-repeat:no-repeat;
width:1200px; height:50px; float:left; margin: auto; }
#topmenu ul {
font-size:16px;
text-align:center;
margin: 10px 0px 0px 100px; padding:0px; width: 1200px; height: 40px;
background:none; }
#topmenu li {
margin:0px 0px 0px 0px;
padding: 0px 40px 0px 0px;
border:0px;
list-style-type:none;
float:left; }
#topmenu li a {
display:block;
min-width:100px;
min-height:30px;
text-decoration:none;}
#topmenu li a:link { color:#FFF; }
#topmenu li a:visited { color:#E3E3E3; }
#topmenu li a:hover { color:#E65C00; }
#topmenu li a:active { color:#E65C00; }
/* Sub Menu */
#submenu {
background-image:url( /* Diff Stylesheet attached for custom bg-image */ );
background-position:center top;
background-repeat:no-repeat;
width:1200px; height:40px; float:left; margin: 0px auto auto auto; }
#submenu ul {
font-size:15px;
text-align:center;
padding:0px; width: 1200px; height: 40px;
background:none; }
#submenu li {
margin:2px 0px 0px 0px;
padding: 0px 40px 0px 0px;
border:0px;
list-style-type:none;
float:left; }
#submenu li a {
display:block;
min-width:100px;
min-height:30px;
text-decoration:none; }
#submenu li a:link { color:#FFF; }
#submenu li a:visited { color:#E3E3E3; }
#submenu li a:hover { color:#E65C00; }
#submenu li a:active { color:#E65C00; }
//
Is there anyone that can see something wrong here?
Is there something completely else that I need to know about?
Thank you!
/ Nico Collu
I cannot get the a:active CSS line to actually keep the current clicked link active. The a:hover/link/visited work.
This is my website: http://www.nicocollu.com
My template (HTML/CSS) is constructed by myself.
Before anything, it should be known that the Menu Manager is currently set to:
cssmenu.tpl (read only)
(I tried cachable and non-cachable - both do not work with current settings.)
HERE IS THE HTML:
(CSS below.)
<!--Top Menu-->
<div id="topmenu">
{menu number_of_levels="1"}
</div>
<!--Sub Menu-->
<div id="submenu" style="background-image:url(http://www.nicocollu.com/uploads/images ... ubmenu.png);">
{menu start_level='2'}
</div>
THE CSS GOES:
(I've added both the top & submenu as they both have the same issue.)
/* Top Menu */
#topmenu {
background-image:url(http://www.nicocollu.com/uploads/images ... opmenu.png);
background-position:center top;
background-repeat:no-repeat;
width:1200px; height:50px; float:left; margin: auto; }
#topmenu ul {
font-size:16px;
text-align:center;
margin: 10px 0px 0px 100px; padding:0px; width: 1200px; height: 40px;
background:none; }
#topmenu li {
margin:0px 0px 0px 0px;
padding: 0px 40px 0px 0px;
border:0px;
list-style-type:none;
float:left; }
#topmenu li a {
display:block;
min-width:100px;
min-height:30px;
text-decoration:none;}
#topmenu li a:link { color:#FFF; }
#topmenu li a:visited { color:#E3E3E3; }
#topmenu li a:hover { color:#E65C00; }
#topmenu li a:active { color:#E65C00; }
/* Sub Menu */
#submenu {
background-image:url( /* Diff Stylesheet attached for custom bg-image */ );
background-position:center top;
background-repeat:no-repeat;
width:1200px; height:40px; float:left; margin: 0px auto auto auto; }
#submenu ul {
font-size:15px;
text-align:center;
padding:0px; width: 1200px; height: 40px;
background:none; }
#submenu li {
margin:2px 0px 0px 0px;
padding: 0px 40px 0px 0px;
border:0px;
list-style-type:none;
float:left; }
#submenu li a {
display:block;
min-width:100px;
min-height:30px;
text-decoration:none; }
#submenu li a:link { color:#FFF; }
#submenu li a:visited { color:#E3E3E3; }
#submenu li a:hover { color:#E65C00; }
#submenu li a:active { color:#E65C00; }
//
Is there anyone that can see something wrong here?
Is there something completely else that I need to know about?
Thank you!
/ Nico Collu