How to change active link color in bootstrap css?

前端 未结 9 826
余生分开走
余生分开走 2021-02-08 03:00

I am using joomla 3 and bootstrap.min.js I am creating menu and giving special class in order to change hover, active, visited links and style of the menu. I could not find how

相关标签:
9条回答
  • 2021-02-08 03:53

    For change the current active link color we can use code in external css file or inline css

    .active a
    {
    background-color:#ff0000;
    }
    
    0 讨论(0)
  • 2021-02-08 03:57

    Finally with experiments I found how to capture it.

    #top-menu .current a
    {
        color: orange !important;
    }
    

    Thank you everyone for your time and help. Much appreciated!

    0 讨论(0)
  • 2021-02-08 03:57

    Try changing your CSS to .item-109 { color: white !important; }.

    Here's a link with more information on !important.

    0 讨论(0)
提交回复
热议问题