1 light up on mouse over navigation bar {Forumotion} Thu May 20, 2010 10:05 am
Amber
Registered Member
To make your navigation bar light up when your mouse scrolls over it, and have it shadowed over when it's not, then i'd recommend this code for you
I HAVE ONLY TESTED THIS ON FORUMOTION PHPBB3 forums!
Here is the complete code:
You insert that code in the CSS, anywhere in the CSS, and it will make your navigation buttons like this:
EXAMPLE
You can edit the opacity, padding, and such by editing the numbers in the code, :
I've bolded the main things in the code to what you can edit; not to say that cannot edit other parts of the code, but if you're new, i'd recommend not really editing anything or just the bolded numbers.
I HAVE ONLY TESTED THIS ON FORUMOTION PHPBB3 forums!
Here is the complete code:
- Code:
/* Menu-------------------------------------------------*/
.navbar {
}
ul.linklist li a img {
filter:alpha(opacity=20);
-moz-opacity: 0.5;
opacity: 0.3;
}
ul.linklist li a img:hover {
filter:alpha(opacity=100);
-moz-opacity: 2.0;
opacity: 1.9;
position: relative;
cursor:allowed;
}
#page-header #search-box {
display: none;
}
You insert that code in the CSS, anywhere in the CSS, and it will make your navigation buttons like this:
EXAMPLE
You can edit the opacity, padding, and such by editing the numbers in the code, :
/* Menu-------------------------------------------------*/
.navbar {
padding:0px 10px;
}
ul.linklist li a img {
filter:alpha(opacity=20);
-moz-opacity: 0.5;
opacity: 0.3;
}
ul.linklist li a img:hover {
filter:alpha(opacity=100);
-moz-opacity: 2.0;
opacity: 1.9;
position: relative;
cursor:allowed;
}
#page-header #search-box {
display: none;
}
I've bolded the main things in the code to what you can edit; not to say that cannot edit other parts of the code, but if you're new, i'd recommend not really editing anything or just the bolded numbers.
Last edited by Amber on Sat May 22, 2010 3:23 am; edited 2 times in total