Forums

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

Home Forums CSS active page help

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #146789
    iamRDM
    Participant

    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.

    #147576
    jurotek
    Participant

    CSS

    .menuBar a.active, .menuBar a.active:hover { color:red;cursor:default;} 
    

    HTML

    <div class="menuBar">
      <a class="active">HOME</a> /* is red */
    </div>
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.