Forums

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

Home Forums CSS How to keep the current tab active(colored)?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #41594
    sayedtaqui
    Member

    I was trying to keep the color of the current tab active(colored) in my page however its not happening by assigning a class to each li
    because the current is tab in h5 tag.
    I know how to keep the current pages tab active in the main navigation bar however its not happening here.
    ebusinesssocial.com/dashboard/ (you would be required to login so here is the login info [email protected] 123456)
    Left navigation.

    #118953
    sayedtaqui
    Member

    Thanks for the reply Jurotek but the line doesn’t have a link. So ‘a’ will not work here.
    the code is this

    Network Inbox

    #118954
    sayedtaqui
    Member

    Network Inbox

    #118958
    sayedtaqui
    Member

    Have tried that already jurotek , didn’t work.
    Probably I m making some mistake , can you please elaborate a little this is the code I have entered
    #sidebar.viewport-content, #sidebar-inbox h5.active,{
    background-color:#39F;
    color:#aaa;
    line-height:25px;
    }

    #sidebar.viewport-content, #sidebar-inbox h5.active:hover {
    background-color:#39F;
    color:#aaa;
    line-height:25px;
    }

    and the html is this

    Network Inbox

    #118960
    sayedtaqui
    Member

    I applied this css however its only making the first tab colored but not the rest in colum.(since I have applied the active class only in the first tab as I dont know what to do with it)
    and if I apply the active call in all the tabs they become permanently blue.
    ):

    #118962
    sayedtaqui
    Member

    That’s ok. I appreciate your effort that you put to solve this. Probably I’ll have to start a new discussion later because no one else is replying here.

    #254036
    krystadj
    Participant

    Hi did you manage to figure this out? thanks

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.