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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
dhathy
Forum Members
Forum Members
Posts: 36
Joined: Wed Jan 17, 2007 12:20 pm

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

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

yet another 'my car doesnt work' question?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
Peciura

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

Post 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;
}
*/
User avatar
dhathy
Forum Members
Forum Members
Posts: 36
Joined: Wed Jan 17, 2007 12:20 pm

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

Post 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
Post Reply

Return to “Layout and Design (CSS & HTML)”