title: Bootstrap modal as dropdown
body: <pre><code>    &lt;div id="lastcolumn" class="col-md-3"&gt;
          &lt;ul class="nav navbar-nav pull-right"&gt;
              &lt;li class="llogin"&gt;&lt;a class="mlogin" data-target="#loginmodal" data-toggle="modal"&gt;&lt;span class="glyphicon glyphicon-chevron-down pull-right"&gt;&lt;/span&gt;Login&lt;/a&gt;&lt;/li&gt;
                          &lt;div class="modal" id="loginmodal" tabindex="-1"&gt;
                              &lt;div class="modal-dialog"&gt;
                                  &lt;div class="modal-content"&gt;
                                      &lt;div class="modal-header"&gt;
                                          &lt;button class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
                                      &lt;/div&gt;
                                      &lt;div class="modal-body"&gt;
                                          &lt;form&gt;
                                              &lt;div class="form-group"&gt;
                                                  &lt;label for="Username"&gt;Username&lt;/label&gt;
                                                  &lt;input type="text" name="text" class="form-control"&gt;
                                              &lt;/div&gt;
                                              &lt;div class="form-group"&gt;
                                                  &lt;label for="Password"&gt;Password&lt;/label&gt;
                                                  &lt;input type="Password" name="text" class="form-control"&gt;
                                              &lt;/div&gt;
                                          &lt;/form&gt;
                                      &lt;/div&gt;
                                      &lt;div class="modal-footer"&gt;
                                          &lt;button class="btn btn-primary" data-dismiss="modal"&gt;Close&lt;/button&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
              &lt;li class="lsignup"&gt;&lt;a class="msignup"&gt;&lt;span class="glyphicon glyphicon-chevron-down pull-right"&gt;&lt;/span&gt;Signup&lt;/a&gt;&lt;/li&gt;
              &lt;li class="lcart"&gt;&lt;a class="mcart"&gt;&lt;span class="glyphicon glyphicon-shopping-cart pull-right"&gt;&lt;/span&gt;Item&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to show bootstrap modal as dropdown under login currently my modal is showing in middle of the screen what i have to do to achieve the desired behaviour, kindly help.<a href="https://i.stack.imgur.com/52I6d.png" rel="nofollow noreferrer">enter image description here</a></p>