Can anyone share with me the best way (with CSS) to have the menu button of the page you are on stay in a state that shows that is where you are. kinda like it does right on this site.
I usually do it with the body ID:
http://css-tricks.com/video-screencasts … e-body-id/
I make a select id and add that to the link I want to highlight
and whatever way I want my link to look like in the selected state i code for that in CSS
although the body id seems a better idea I have never used it myself
This reply has been reported for inappropriate content.
It really depends on what sort of website you have. If it’s just a few static HTML pages then the body id is the way to go.
If you are serving up your pages dynamically with PHP then you can use something like:
And if you are using something like WordPress then the class current_page_item is already added for you.
You must be logged in to reply to this topic.