Ok, here goes.
So I have 3 that are to represent 3 blocks of content next to each other.
I want them to scale to the browser whilst keeping their aspect ratio.
This is what I have so far:
.dash__node__container {
padding: 1rem;
width: 100%;
padding-bottom: 75%;
position: absolute;
}
.dash__node {
width: 32.75%;
height: 50px;
display: inline-block;
border: 1px solid #D8D8D8;
position: relative;
}
And Html:
<div class="dash__node__container">
<div class="dash__node"></div>
<div class="dash__node"></div>
<div class="dash__node"></div>
</div>
This code isn't holding the aspect ratio and the third block jumps down to the next line.