Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [How to?] Make text(link) active Reply To: [How to?] Make text(link) active

#150054
georgearnall
Participant

The easiest way to do this would be to give the active page menu item a class of something such as .active. Then just use:

#navigation nav .active {
   font-size: 16px;
}

If your site is literally static pages then it would be easy to add the class to the correct menu item. Otherwise you could use PHP but it really depends on what you are using. On WordPress, they provide you with a class of current_page_item to style such things.

Hope this helps :)