How to float div to the right with Twitter Bootstrap and HTML?

Spread the love

Sometimes, we want to float div to the right with Twitter Bootstrap and HTML.

In this article, we’ll look at how to float div to the right with Twitter Bootstrap and HTML.

How to float div to the right with Twitter Bootstrap and HTML?

To float div to the right with Twitter Bootstrap and HTML, we use the pull-right class.

For instance, we write

<div class="row-fluid">
  <div class="span6">
    <p>text left</p>
  </div>
  <div class="span6">
    <div class="pull-right">
      <p>text right</p>
    </div>
  </div>
</div>

to add the pull-right class to the div to make it float to the right.

Conclusion

To float div to the right with Twitter Bootstrap and HTML, we use the pull-right class.

Leave a Reply

Your email address will not be published.