I am currently working on creating images for my sidebar that have the same width but different heights. I am trying to achieve this without any spaces between the images.
To get a better understanding of what I am trying to do, please refer to the following image:
My development stack includes Vue.js, CSS, and HTML.
.column {
float: left;
width: 50%;
}
/* Clearfix (clear floats) */
.row::after {
content: "";
clear: both;
display: table;
}
.img-dtm{
width: 100%;
border: 1px;
border-style: solid;
}
<!-- Sidebar -->
<div class="w3-sidebar w3-bar-block w3-border-right" style="display:none;top:0px;right:0;width:30%;" id="mySidebar">
<div class="row">
<div class="column">
<div id="MM_P1" value="MM_P1" v-on:click="go_map"><img class="img-dtm" src="assets/images/DTM/MM_P1.png" ></div>
<div id="MM_P2" value="MM_P2" v-on:click="go_map"><img class="img-dtm" src="assets/images/DTM/MM_P2.png" ></div>
<div id="MM_P3" value="MM_P3" v-on:click="go_map"><img class="img-dtm" src="assets/images/DTM/MM_P3.png" ></div>
<div id="MM_P4" value="MM_P4" v-on:click="go_map"><img class="img-dtm" src="assets/images/DTM/MM_P4.png" ></div>
<div id="MM_P5" value="MM_P5" v-on:click="go_map"><img class="img-dtm" src="assets/images/DTM/MM_P5.png" ></div>
</div>
<div class="column">
<div id="MM_P6" value="MM_P6" v-on:click="go_map"><img class="img-dtm" src="assets/images/DTM/MM_P6.png" ></div>
<div id="MM_P7" value="MM_P7" v-on:click="go_map"><img class="img-dtm" src="assets/images/DTM/MM_P7.png" ></div>
<div id="MM_P8" value="MM_P8" v-on:click="go_map"><img class="img-dtm" src="assets/images/DTM/MM_P8.png" ></div>
<div id="MM_P9" value="MM_P9" v-on:click="go_map"><img class="img-dtm" src="assets/images/DTM/MM_P9.png" ></div>
</div>
</div>
</div>
<!-- Page Content -->
<div class="w3-teal">
<button id="sidebar-btn" class="w3-button w3-teal w3-xlarge w3-right" style="position: fixed;top:50%;right:0;" v-on:click="open_close_sidebar"><</button>
</div>
I have attempted to address the issue of space with the images, but have not been successful so far.