Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

[SOLVED] color on hover


  #1  
Old Sep 22, 2010, 02:45 PM
cway
 
154 posts · Jul 2009
I'm trying to get a 2px solid bar to appear below menu items on mouse over.
Below is my coding, but it's not working. Can anybody help?
Here's what I'm trying to duplicate: http://www.orchidorganics.com/mm5/merchant.mvc
Thanks!
Cway

Code:
/* ================================================ */
/* Page menu background                             */
/* ================================================ */
div#menu1 { 
	margin-top:0px;
}
/* ================================================ */
/* Page Menu item's background and border           */
/* ================================================ */
div#menu1 ul.rMenu {
	height: 28px;
	background: URL(http://www.orchidorganics.com/mm5/graphics/nav_bar_gradient_background.gif);
	border: none 0px; 
}
/* ================================================ */
/* Page Menu item                                   */
/* ================================================ */
ul.rMenu li a:link, 
ul.rMenu li a:hover, 
ul.rMenu li a:active, 
ul.rMenu li a:visited, 
ul.rMenu li {
	background: transparent !important;
	font-align: bottom;
	color: #666666 !important;
	margin-left: 16px;
	margin-right: 16px;
	margin-top: 2px;
	margin-bottom: 0px
}
ul.rMenu li a:hover {
    border-bottom: 2px #a3238e solid;
}
/* ================================================ */

Last edited by cway; Sep 22, 2010 at 02:46 PM. Reason: Forgot URL
  #2  
Old Sep 22, 2010, 05:54 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Try rearranging the border shorthand as such. The order is supposed to be width, style, color.
HTML Code:
ul.rMenu li a:hover {
    border-bottom: 2px solid #a3238e;
}
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Sep 23, 2010, 03:54 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!!

Note: a:active MUST come after a:hover in the CSS definition in order to be effective!!
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Sep 23, 2010, 09:30 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Those kinds of rules are why w3school.com can be so helpful.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Sep 23, 2010, 10:09 AM
cway
 
154 posts · Jul 2009
Thanks for the quick help, guys!
I've made the changes, but it still isn't working.
New code:

Code:
ul.rMenu li a:link, 
ul.rMenu li a:visited, 
ul.rMenu li a:hover, 
ul.rMenu li a:active, 
ul.rMenu li {
	background: transparent !important;
	font-align: bottom;
	color: #666666 !important;
	margin-left: 16px;
	margin-right: 16px;
	margin-top: 2px;
	margin-bottom: 0px
}
ul.rMenu li a:hover {
    border-bottom: 2px solid #a3238e;
}
Would the margins be causing a problem?
Any other ideas?
Thanks!
Cway
  #6  
Old Sep 23, 2010, 10:22 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Have you tried

HTML Code:
border-bottom: 2px solid #a3238e !important;
You also may have to adjust the bottom padding as it looks like the border needs to be closer to the text.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Sep 23, 2010, 11:21 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try it like this
HTML Code:
ul.rMenu li a:link, 
ul.rMenu li a:visited {
	background: transparent !important;
	font-align: bottom;
	color: #666666 !important;
	margin-left: 16px;
	margin-right: 16px;
	margin-top: 2px;
	margin-bottom: 0px
}
ul.rMenu li a:hover {
     border-bottom: 2px solid #a3238e;
	background: transparent !important;
	font-align: bottom;
	color: #666666 !important;
	margin-left: 16px;
	margin-right: 16px;
	margin-top: 2px;
	margin-bottom: 0px
}
ul.rMenu li a:active, 
ul.rMenu li {
	background: transparent !important;
	font-align: bottom;
	color: #666666 !important;
	margin-left: 16px;
	margin-right: 16px;
	margin-top: 2px;
	margin-bottom: 0px
}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Sep 23, 2010, 12:19 PM
cway
 
154 posts · Jul 2009
hover didn't work. I put !important in the border-bottom hover and the colored bar appeared on mouse-over, but the page jumps around now when you hover.

And the colored bar below the link is below the black rule/line, too.

Last edited by cway; Sep 23, 2010 at 12:25 PM. Reason: noticed something else
  #9  
Old Sep 23, 2010, 01:57 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
How about adding padding as below?
HTML Code:
ul.rMenu li a:hover {
border-bottom: 2px solid #a3238e;
background: transparent !important;
font-align: bottom;
color: #666666 !important;
margin-left: 16px;
margin-right: 16px;
margin-top: 2px;
margin-bottom: 0px;
padding-bottom: 0 !important;
}
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #10  
Old Sep 23, 2010, 04:16 PM
cway
 
154 posts · Jul 2009
That did the trick!
Below is the complete coding.
Let me know if any of it can be streamlined or cleaned-up.
Thanks, juggledad and lmilesw!
Cway

Code:
/* Page Menu item                                   */
/* ================================================ */

ul.rMenu li a:link, 
ul.rMenu li a:visited {
	background: transparent !important;
	font-align: bottom;
	color: #666666 !important;
	margin-left: 16px;
	margin-right: 16px;
	margin-top: 2px;
	margin-bottom: 0px
}
ul.rMenu li a:hover {
     border-bottom: 2px solid #a3238e !important;
	background: transparent !important;
	font-align: bottom;
	color: #666666 !important;
	margin-left: 16px;
	margin-right: 16px;
	margin-top: 2px;
	margin-bottom: 0px
}
ul.rMenu li a:active, 
ul.rMenu li {
	background: transparent !important;
	font-align: bottom;
	color: #666666 !important;
	margin-left: 16px;
	margin-right: 16px;
	margin-top: 2px;
	margin-bottom: 0px
}
ul.rMenu li a:hover {
border-bottom: 2px solid #a3238e;
background: transparent !important;
font-align: bottom;
color: #666666 !important;
margin-left: 16px;
margin-right: 16px;
margin-top: 2px;
margin-bottom: 0px;
padding-bottom: 1px !important;
}
/* ================================================ */

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Why do children items have parents hover color. FlippinSweet Page & Category Menu Bars 8 Jun 28, 2010 12:04 PM
[SOLVED] Hover color not working properly in IE BradBrown Page & Category Menu Bars 5 Sep 23, 2009 09:10 PM
How to make Current page color different than Hover color? 25jai Page & Category Menu Bars 7 Jul 17, 2009 05:06 AM
Table changes color/highlights with mouse hover. How do I stop it? InviteStory Atahualpa 3 Wordpress theme 2 Apr 24, 2009 12:05 PM
Change hover color in body of post HalfWayThere Atahualpa 3 Wordpress theme 6 Feb 18, 2009 02:56 PM


All times are GMT -6. The time now is 08:02 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.