V
V
viktorulyushev2016-10-03 14:04:21
Bootstrap
viktorulyushev, 2016-10-03 14:04:21

Bootstrap how to add 2 menubars?

There is a navigation menu, but if I add 1 more, then it inherits all the styles from 1, how can I add another one? After all, you can’t change the standard bootstrap div names.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aista, 2016-10-03
@Aista

You cannot change vendor files (if I understand the essence of the issue correctly), and you can twist your markup as you like.
For example, nothing prevents you from adding a class and giving it your own style

<div class="navbar navbar-default my-first-menu">
  <div class="container-fluid">
    <div class="navbar-header"></div>
  </div>
</div>
<div class="navbar navbar-default my-other-menu">
  <div class="container-fluid">
    <div class="navbar-header"></div>
  </div>
</div>

.my-first-menu {
  background: black;
}
.my-other-menu {
  background: red;
}

I
Ivan, 2016-10-03
@LiguidCool

Set styles by ID.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question