title: Bootstrap dropdown align right fail
body: <p>I have tried to allign my dropdown to the right part of navbar but failed, I have tried a lot of way to do it, in all ways I have failed.
  If there is any way to fix this someone help me please, thanks in advance.</p>
  
  <pre><code>&lt;?php
  $curdir = getcwd ();
  chdir('/forum');
  require_once('/global.php');
  chdir ($curdir);
  $username=$vbulletin-&gt;userinfo['username'];
  ?&gt;
  &lt;div class="navbar-wrapper"&gt;
       &lt;div class="container"&gt;
          &lt;div class="navbar navbar-inverse"&gt;
            &lt;div class="navbar-inner"&gt;
              &lt;button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
              &lt;a class="brand" href="/index.php"&gt;&lt;/p&gt;Name&lt;/p&gt;&lt;/a&gt;
              &lt;div class="nav-collapse collapse"&gt;
                &lt;ul class="nav"&gt;
                &lt;li&gt;
                                  &lt;a href='/index.php'&gt;&lt;img src="/home.png" height="25" width="25"&gt; Home&lt;/b&gt;&lt;/a&gt;
                              &lt;/li&gt;
  
                              &lt;li&gt;
                                  &lt;a href='/forum'&gt;&lt;img src="/forum.png"&gt; Forum&lt;/a&gt;
                              &lt;/li&gt;
                               &lt;li class='dropdown'&gt;
                                  &lt;a href='#' class='dropdown-toggle' data-toggle='dropdown'&gt;&lt;img src="P.png"&gt; Players&lt;b class='caret'&gt;&lt;/b&gt;
  
                                  &lt;/a&gt;
                                  &lt;ul class="dropdown-menu"&gt;
                                      &lt;li&gt;
                                          &lt;a href="action.php"&gt;&lt;img src="/action.php"&gt; Action&lt;/a&gt;
                                      &lt;/li&gt;                                 
                                  &lt;/ul&gt;
                              &lt;/li&gt;
                              &lt;?php if ($vbulletin-&gt;userinfo['usergroupid'] == '1' )
                              echo "
                              &lt;li class='dropdown'&gt;
                                  &lt;a href='#' class='dropdown-toggle' data-toggle='dropdown'&gt;&lt;i class='icon-user icon-white'&gt;&lt;/i&gt; Welcome Guest&lt;b class='caret'&gt;&lt;/b&gt;
                                  &lt;/a&gt;
                                  &lt;ul class='dropdown-menu'&gt;
                                      &lt;li&gt;
                                          &lt;a href='#'&gt;&lt;img src='/img/connectserver.png'&gt; Action&lt;/a&gt;
                                      &lt;/li&gt;
                                      &lt;li&gt;
                                          &lt;a href='/login.php'&gt;&lt;i class='icon-ban-circle'&gt;&lt;/i&gt; Login&lt;/a&gt;
                                      &lt;/li&gt;
                                      &lt;li&gt;
                                          &lt;a href='register.php'&gt;&lt;i class='icon-ok'&gt;&lt;/i&gt; Register&lt;/a&gt;
                                      &lt;/li&gt;
                                  &lt;/li&gt;
                                  &lt;/ul&gt;
                                  &lt;/ul&gt;
                              &lt;/li&gt;";?&gt;
                              &lt;?if ($vbulletin-&gt;userinfo['usergroupid'] != '1' )
                              echo "
                          &lt;/li&gt;
                              &lt;li class='dropdown'&gt;
                                  &lt;a href='#' class='dropdown-toggle class='nav pull-right' data-toggle='dropdown'&gt;&lt;img src='/img/connectserver.png'&gt;&lt;/i&gt; Welcome &lt;font color='red'&gt;$username&lt;/font&gt;&lt;b class='caret'&gt;&lt;/b&gt;
                                  &lt;/a&gt;
                                  &lt;ul class='dropdown-menu'&gt;
                                      &lt;li&gt;
                                          &lt;a href='#'&gt;&lt;img src='/img/connect.png' height='19' width='19'&gt; Connect to server&lt;/a&gt;
                                      &lt;/li&gt;
                                      &lt;!-- &lt;li&gt;
                                          &lt;a href='#'&gt;&lt;img src='/log-out.png' height='19'  width='19'&gt; Log out&lt;/a&gt;
  
                                      &lt;/li&gt;  --&gt;  
                                  &lt;/li&gt;
                                  &lt;/ul&gt;
                              &lt;/li&gt;&lt;/p&gt;";?&gt;
                &lt;/ul&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>