Home › Forums › Back End › [Solved] Active navigation using an included .php header › Re: [Solved] Active navigation using an included .php header
March 2, 2010 at 3:13 am
#71844
quelake
Member
I use another method;
I assign a unique body-ID to every page by using the filename:
Code:
“>
In your css you can then simply add styling for the active state of that page (filename is without ".php" of course);
Code:
body#filename1 ul#navigation li a.button_that_needs_to_have_active_state,
body#filename2 ul#navigaton li a.button_that_needs_to_have_active_state_here {
“behaviour for active state”
body#filename2 ul#navigaton li a.button_that_needs_to_have_active_state_here {
“behaviour for active state”
}