Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] Underline upon hover (http://forum.bytesforall.com/showthread.php?t=4154)

Wimbledon Oct 31, 2009 09:53 PM

[SOLVED] Underline upon hover
 
I would like to know how to style the Atahualpa page menu bar so that it functions exactly like the one on this Atahualpa site:

http://www.martinewicki.ch/

How do I do implement that bold + underline? Can this be done with a simple CSS insert?

Thank you.

Flynn Nov 5, 2009 05:06 PM

This can be done with a CSS Insert, no PHP etc. needed

Wimbledon Nov 7, 2009 11:37 AM

Does anyone know how such a CSS insert would be coded? Thank you.

paulae Nov 7, 2009 12:00 PM

Put this in CSS inserts:
Code:

.div#menu1 ul.rMenu li a:link, div#menu1 ul.rMenu li a:hover,  div#menu1 ul.rMenu li a:active {
-x-system-font:none;
border-bottom:4px solid #307722;
border-left:1px solid #BFBBB9;
border-right:1px solid #BFBBB9;
border-style:solid;
}

The 307722 is a nice green. You could use any color code. Get Firebug and use it to find the class and CSS for a given element on a page. I may have stuff here that's not necessary, but I'm not very good at CSS, so I just copied what I saw and changed the color. Maybe somebody else can parse this out a bit better. I have it working on http://www.fastwomen.com/, a test site.

juggledad Nov 7, 2009 12:27 PM

What this does is
border-bottom:4px solid #307722; <- set the bottom border 4px thick, solid and orange
border-left:1px solid #BFBBB9; <- set left border 1px, solid and same as backgrounnd color
border-right:1px solid #BFBBB9; <- set right border 1px, solid and same as backgrounnd color

In effect, it makes the left and right borders invisable since they are the same as the background and the bottom orange so it shows up.

paulae Nov 7, 2009 12:34 PM

I somehow removed the bit that would show the underline before any action. I didn't want it to show a: visited. I'm not sure what the x-system font is, but I do know I need to study CSS more. I guess there are continually new kinds of CSS coming down the pike.

writeleft Nov 16, 2009 08:26 PM

I would think that since you specific "border-bottom" the "border-left" and "border-right" markers would be unnecessary, wouldn't they?

If i wanted the menu option to be marked with an underline when it is selected, what would I need to change in the insert?

Thank you for figuring this out.

juggledad Nov 17, 2009 05:21 AM

When you are adding a CSS insert, remember the way CSS works. The last rule applies. In this case, since all three borders were assigned in a previous selector, if you only specify border-bottom, then the other two will still have their previous values. And since we are assigning two different colors, you can't use shorthand to override them all.

Wimbledon Jan 27, 2010 09:08 AM

Thanks for everyone's input in this thread.

I have the menu working here:
http://tiny.cc/safeatahualpa

Yet when you hover over the menu, the entire page moves down as the underline appears. How can I change the CSS insert so the page does not move? I am guessing that you need to have the 4px bottom-border already defined, yet I have tried a variety of changes to the CSS insert and nothing seems to work.

juggledad Jan 28, 2010 04:45 AM

try this
HTML Code:

#rmenu2 { height:30px;}

Wimbledon Jan 28, 2010 01:30 PM

Thanks juggledad!


All times are GMT -6. The time now is 11:20 AM.

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