I am wondering what is the best way to place spaces between these 3 images using CSS using Bootstrap 3 RC2, since what I have done so far is not automatically resizing images, although I set the width to auto in the id tag #picture . I want them to insert and resize images accordingly.
Here is my markup:
<div class="container"> <div class="row"> <div class="col-lg-4"> <img src="http://placehold.it/350x250" id="picture" /> </div> <div class="col-lg-4"> <img src="http://placehold.it/350x250" id="picture" /> </div> <div class="col-lg-4"> <img src="http://placehold.it/350x250" id="picture" /> </div> </div> </div>
CSS
.container { max-width:1000px; background-color:white; } body { background-color:cyan } #picture { width:auto; } .col-lg-4 { margin-left:10px; margin-right:10px; }
Check the Fiddle for a clearer view. Is there a better way to handle this?
source share