Skip to content Skip to sidebar Skip to footer

Fix Position Of Images At Left, Center And Right On Page But Also Responsive

If I want one image on left hand side and another one is on right hand side simultaneously in same row such that it is responsive in every device. Then what should I do? As you can

Solution 1:

HTML

<divclass="wrapper col-md-3"><imgclass="img-responsive"src="https://www.google.co.uk/images/srpr/logo11w.png"/></div><divclass="wrapper col-md-6"><imgclass="img-responsive"src="https://www.google.co.uk/images/srpr/logo11w.png"/></div>

CSS

.wrapper { float: left; clear: left; display: table; table-layout: fixed; }
img.img-responsive { display: table-cell; max-width: 100%; }

.col-md-6 { width: 25%; float: left;}
.col-md-3 { width: 25%; float: right;}

JSFiddle

Post a Comment for "Fix Position Of Images At Left, Center And Right On Page But Also Responsive"