html - Align images on each other -


this question has answer here:

i wonder if anyhow know solution headache, want third image under first. second image height larger first creates empty space.

how looks right enter image description here

code:

every image code block looks same

column_1_5_of_3 {    width: 100%;  }    col_nomargin {    display: inline-block;    position: relative;    float: left;    margin: 0% 0% 0.25% 0.25%;    overflow: hidden;  }    portimg {    width: 100%;    height: auto;    margin: 0% 0 0% 0%;    transition: .5s ease;    display: block;  }    column_1_5_of_3 {    width: 100%;  }    col_nomargin {    display: inline-block;    position: relative;    float: left;    margin: 0% 0% 0.25% 0.25%;    overflow: hidden;  }    portimg {    width: 100%;    height: auto;    margin: 0% 0 0% 0%;    transition: .5s ease;    display: block;  }
<div class="col_nomargin column_1_of_3">    <img class="portimg" src="" alt="">

if there have missed or questions. please tell

thank help

.gal {  	  	  	-webkit-column-count: 3; /* chrome, safari, opera */      -moz-column-count: 3; /* firefox */      column-count: 3;  	    	  	}	  	.gal img{ width: 100%; padding: 7px 0;}  @media (max-width: 500px) {  		  		.gal {  	  	  	-webkit-column-count: 1; /* chrome, safari, opera */      -moz-column-count: 1; /* firefox */      column-count: 1;  	    	  	}  		  	}
<div class="container">      <h1>pure css responsive masonry gallery</h1>  <div class="col-md-12">  <div class="row">  <hr>    	<div class="gal">  	  	<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  	  		<img src="https://preview.ibb.co/mwpe3q/2.jpg" alt="">  		  			<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  			  			<img src="https://preview.ibb.co/mysoxk/3.jpg" alt="">  			  			  		  			<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  				<img src="https://preview.ibb.co/mwpe3q/2.jpg" alt="">  			  			<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  			  				<img src="https://preview.ibb.co/mysoxk/3.jpg" alt="">  			  				<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  				<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt=""><img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  				<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  				  				<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  				<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  				<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  					<img src="https://preview.ibb.co/mysoxk/3.jpg" alt="">  			  						<img src="https://preview.ibb.co/mysoxk/3.jpg" alt="">  			  						<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  				<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  				<img src="https://preview.ibb.co/i0pmhk/1.jpg" alt="">  				<img src="https://preview.ibb.co/mwpe3q/2.jpg" alt="">  				  	</div>  	  </div>  </div>  </div>

try code


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -