Page 1 of 1

"Current or Active Page" menu question when, that page has sub-menu's

Posted: Fri May 28, 2010 5:53 pm
by dhathy
First, the link:
http://www.drhathy.com/hts/

The main menu in header,
Home  FAQ's Services work fine after being clicked and become the current/active page.

The problem is with the "Small Biz Tips" link.

Here is the code generated when this page is active:
Small Biz Tips

Here is the code when "Home" is active:
Home



As you can see, there are different classes in play.  "Small Biz Tips" is the parent of another set of links that show in the left sidebar when that page is active.

My question is this:  When "Small Biz Tips" is active, how do I get it styled to look like the other main links?

Thanks,

Dan

Re: "Current or Active Page" menu question when, that page has sub-menu's

Posted: Fri May 28, 2010 8:16 pm
by calguy1000
yet another 'my car doesnt work' question?

Re: "Current or Active Page" menu question when, that page has sub-menu's

Posted: Sat May 29, 2010 7:28 pm
by Dr.CSS
Use Firefox with the Web Dev. tool-bar, in outline use current element, hover the link to find the class etc. use edit css to find the style sheet that needs changing, in that style sheet find the css call that link is using, find another link style that is what you want and change the other one to reflect the same style...

Re: "Current or Active Page" menu question when, that page has sub-menu's

Posted: Sun May 30, 2010 6:46 am
by Peciura
If you want all 1rst level menu items to look the same why have you styled 'li.menuparent' ? Furthermore, some style properties are overridden by other style rules or are hidden by child html elements.
Comment it like this and look what happens

Code: Select all

/*
li.menuparent {
background-color:#E9E59E;
border-color:#FFFFFF #FFFFFF #AF7142;
border-style:solid;
border-width:0;
color:#5A051A;
margin:0 5px;
padding:1px 4px;
text-decoration:none;
}
*/

Re: "Current or Active Page" menu question when, that page has sub-menu's

Posted: Tue Jun 01, 2010 1:38 pm
by dhathy
To Dr. CSS and Peciura,

Thank you!  These suggestions give me a great place to start.  I knew it was something to do with the styling but I had difficulties in finding where.

Regards,

Dan