If you want to pull the image to the right, you need to stretch the image, not the line:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> <div class="container"> <div class="row"> <div class="col-xs-6"> <img src="../Images/logo.png" alt="Logo" class="pull-right"/> </div> <div class="col-xs-6"> Column 2 </div> </div> </div>
If you want the columns to switch places without changing the order of the <div> , you should use .col-*-pull-* and .col-*-push-* . They will respect the column drains:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> <div class="container"> <div class="row"> <div class="col-xs-6 col-xs-push-6"> <img src="../Images/logo.png" alt="Logo"/> </div> <div class="col-xs-6 col-xs-pull-6"> Column 2 </div> </div> </div>
Of course, you can combine both.
(By the way, do not set alt-text to "Logo" in your final design, set it to something useful, such as the name of the company).
source share