Hongbo Miao Hongbo Miao - 1 year ago 169
CSS Question

How to remove the arrow in dropdown in Bootstrap 4?

I am using Bootstrap 4. I tried to remove the arrow in dropdown.

The answers I found for Bootstrap 3 do not work any more.

The jsfiddle is here.

<div class="dropdown open">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="dropdown-menu" aria-labelledby="dropdownMenu1">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>

Answer Source

With css, you could just do that:

.dropdown-toggle::after {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download