sharataka sharataka - 4 months ago 9
HTML Question

How do I right align an element using twitter bootstrap?

I have 3 elements and I am trying to align the button to the right side of the screen, but am having trouble doing so.

<div class="container">
<div class="row-fluid">
<h4>
<img src="img.png" style="width:50px;">
Title
<a href="link_to_img.html" class="btn btn-success">Grab it!</a>
</h4>
</div>
</div>

Answer

Try the class 'pull-right'.

<div class="pull-right">...</div>

See http://getbootstrap.com/css/#helper-classes-floats