The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › active page help
hello, I need some help with active page my html code
<
div class=”menuBar”>
What i want is When we click products the color of “PRODUCTS” it becomes red But when we click “ABOUT” then about becomes red an other become black again.
CSS
.menuBar a.active, .menuBar a.active:hover { color:red;cursor:default;}
HTML
<div class="menuBar"> <a class="active">HOME</a> /* is red */ </div>