Bootstrap Position CSS Helpers

 

.pull-right,.pull-left,.center-block classes used to give position to an element.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bootstrap css helpers Example</title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Pull Classses</h2> <div class="pull-left" style="background-color:gray;width:200px;">element at left</div> <div class="pull-right" style="background-color:lavender;width:200px;">element at right</div> <div class="center-block" style="background-color:yellow;width:200px;">element at centre</div> </div> </body> </html>
Output