I have defined a panel, and inside of it I want to add a pagination right alined.
I tried with the text-align property, setting margin-left and margin-right to auto, but none of them seems to work. Also tried with float: right, but then the pagination falls out of the panel
This is the html code:
<div class="container-fluid theme-showcase" role="main">
  <div class="row">
    <div class='panel panel-default'>
      <div class="panel-heading">My panel with text-align (nothing happens)</div>
      <ul class="pagination">
        <li class="disabled"><a href="#">«</a></li>
        <li class="active"><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">»</a></li>
      </ul>
    </div> <!-- /panel panel-default -->
  </div>
Ans this are the things I tried
<style>
  ul#aligned {
    text-align: right;
  }
  ul#auto-margin {
    margin-left: auto;
    margin-right: auto;
  }
  ul#floated {
    float: right;
  }
</style>
Here there's a working fiddle showing the problem: http://jsfiddle.net/opensas/BfuPc/2/
 
     
    