E
E
Eugene2018-04-12 10:23:43
Bootstrap
Eugene, 2018-04-12 10:23:43

How to remove extra padding in Bootstrap 3 dropdown menu?

In general, we have this
5acf094b00705270412429.jpeg
. I reset the margins. but the white evil spirits are taken from somewhere, and I just want a menu with a separator. Where did I miss something?

.navbar-default .navbar-nav .open .dropdown-menu>li>a
{
  color: white;
  background-color: #48bdc5;
  margin:0;
  padding: 15px;
}

.navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover
{
  background-color: #48bdc5;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kuznetsov, 2018-04-12
@dima9595

These styles are most likely inserted in the li, and not in the links themselves.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question