Skip to content

How to Add an Arrow in Bootstrap Dropdown or in Simple Bootstrap Menu

Bootstrap has no class for an arrow on the active menu item. Copy this short CSS class to add one to your Bootstrap dropdown or navbar.

Published
Reading time
1 min read
Views
6.5k views
How to Add an Arrow in Bootstrap Dropdown or in Simple Bootstrap Menu

Today you will learn how to add an arrow in boostrap menu because Twitter bootstrap has no class to an arrow in activated tab or page in menu. So i have written a simple class for all of you to putt an arrow in your bootstrap menu.

This is simple class just copy and paste in your custom class.
#main_menu.navbar-default .navbar-nav > .active > a:after {
content: "";
position: absolute;
bottom: -10px;
left: 45%;
border-width: 0px 5px 5px;
border-style: solid;
border-color: #c32033 transparent;
display: block;
width: 0;
}

Questions & comments

Did this work for you, or did you hit a different error? Ask below and we will help.

Comments are reviewed before they appear.

More like this

More in Programming

Programming

How to Add ArrayList into Another ArrayList Java Code

In this tutorial you will learn How to Add ArrayList into Another ArrayList Java Code. Very simple program for beginners. ArrayList<arraylist nteger="">> nodes = new Arra…

Programming

Change Color of An Image In JAVA

In this article we will learn how to Change Color of An Image In JAVA language. This is too much easy tutorial for beginners. BufferedImage img = new BufferedImage(600, 3…

Programming

How to get time zone in different programming languages?

Today in this topic we'll cover how you can get time zone in different programming languages. Get Timezone in PHP The function that is being used in PHP to get timezone i…