D
D
Dmitry Vyatkin2015-12-10 05:10:21
HTML
Dmitry Vyatkin, 2015-12-10 05:10:21

How to make a button active in bootstrap without adding the active class?

I can’t figure out how in the example below, the link from list-group-item, becomes active when clicked without adding the active class? Added my "Advert" link, but it's not active when clicked.

<div class="panel panel-default">
    <div class="panel-heading"><strong>Settings</strong></div>
    <div class="list-group">
        <a class="list-group-item account-settings" href="/account/settings/">
            Account
        </a>
        <a class="list-group-item"  href="/ads/">
            Advert
        </a>
        <a class="list-group-item account-password" href="/account/password/">
            Change password
        </a>
        <a class="list-group-item account-delete" href="/account/delete/">
            Delete account
        </a>
    </div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-12-10
@baskserg

So add to href /account/ Like
this: href="/account/ads/"
And you will have an asset without an asset)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question