I am currently creating a map grid using HTML/CSS with the following layout:
#map {
position: absolute;
top: 2vw;
bottom: 2vw;
left: 2vw;
right: 2vw;
overflow: visible;
background : blue;
}
.map-row {
width: 100%;
background: white;
}
.map-row-split {
}
<div id="map">
<div class="map-row" style="height:9.8%;"></div>
<div class="map-row-split" style="height:0.2%"></div>
<div class="map-row" style="height:9.8%;"></div>
<div class="map-row-split" style="height:0.2%"></div>
<div class="map-row" style="height:9.8%;"></div>
<div class="map-row-split" style="height:0.2%"></div>
<div class="map-row" style="height:9.8%;"></div>
<div class="map-row-split" style="height:0.2%"></div>
<div class="map-row" style="height:9.8%;"></div>
<div class="map-row-split" style="height:0.2%"></div>
<div class="map-row" style="height:9.8%;"></div>
<div class="map-row-split" style="height:0.2%"></div>
<div class="map-row" style="height:9.8%;"></div>
<div class="map-row-split" style="height:0.2%"></div>
<div class="map-row" style="height:9.8%;"></div>
<div class="map-row-split" style="height:0.2%"></div>
<div class="map-row" style="height:9.8%;"></div>
<div class="map-row-split" style="height:0.2%"></div>
</div>
For this case, it's a map comprising of 10 rows and, you will notice that the total height adds up to 100% of the parent element.
The only styling applied is setting both map-row
and map-row-split
to have a width=100%
, however, one of the split divs seems to be hidden for some reason:
https://i.sstatic.net/yxBwZ.png
The disappearance of certain split divs (and how many disappear) varies based on the size of the parent container, such as in the case below where the parent is smaller: