J
J
jazzus2019-01-28 23:51:51
Bootstrap
jazzus, 2019-01-28 23:51:51

How to change bootstrap navs?

The code

<ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
            <li class="nav-item">
              <a class="nav-link active" id="pills-profile-tab" data-toggle="pill" href="#pills-profile" role="tab" aria-controls="pills-profile" aria-selected="false">Profile</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" id="pills-contact-tab" data-toggle="pill" href="#pills-contact" role="tab" aria-controls="pills-contact" aria-selected="false">Contact</a>
            </li>
          </ul>
          <div class="tab-content" id="pills-tabContent">
            <div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab">...</div>
            <div class="tab-pane fade" id="pills-contact" role="tabpanel" aria-labelledby="pills-contact-tab">...</div>
          </div>

You need to change the color of the buttons from blue to green.
And align everything in the center.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Martovitskiy, 2019-01-29
@jazzus

Redefine Styles

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  background: green;
}

and align the classesalign-items-center justify-content-center

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question