So I'm trying to make a responsive grid layout for a web re-design I am working on. I started to lay out some placeholders, which can be found in a jsfiddle here.
The width works great; exactly how I want it to.
.half-cell {
height:70%;
width:50%;
background-color: #458bff;
float: left;
display:inline;
background-size:cover;
}
.quarter-cell-horiz {
height:35%;
width:50%;
float: left;
display:inline;
background-color:#373737;
}
However, I am noticing some issues with my height. I'm noticing that at some heights, the placeholders jump out of place. I figure this is because it can't measure out a perfect 70% at every height, the way it can a 50% width.
I'm trying to find a way I can prevent that from happening, while maintaining a specific ratio with each of my placeholders. Preferably, I would like to do so using CSS.
Any help y'all could provide would be great. Thank you for looking at this!