Articles → BOOTSTRAP → Dropup Class In Bootstrap

Dropup Class In Bootstrap






Purpose





Example


<!DOCTYPE html>
<html>
   <head>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class="container">
         <div class="dropup" style="margin-top:300px;">
            <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">                
            Dropdown Example                
            <span class="caret"></span>           
            </button>            
            <ul class="dropdown-menu">
               <li class="dropdown-header">Dropdown header 1</li>
               <li><a href="#">HTML</a></li>
               <li><a href="#">CSS</a></li>
               <li><a href="#">JavaScript</a></li>
               <li class="divider"></li>
               <li class="dropdown-header">Dropdown header 2</li>
               <li><a href="#">C#</a></li>
            </ul>
         </div>
      </div>
   </body>
</html>



Output


Picture showing the output of dropup class in bootstrap
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, October 27, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250