Is there any way of having a list of divs display inline next to each other when they're positioned absolutely?
I don't have control over the markup in my situation, and the divs need to all sit outside of their grid container, hence the position:absolute. In the example below, I would like the 'outside divs' to all sit next to each other.
.container {
max-width:600px;
margin: 20px auto;
position:relative;
}
.grid {
display:grid;
grid-template-columns: repeat(2,minmax(0,1fr));
gap: 1.5rem;
}
.col {
background:pink;
padding:15px
}
.outside-div {
position:absolute;
bottom:-30px;
left:0;
}
<div class="container">
<div class="grid">
<div class="col">
<div>Other content</div>
<div class="outside-div">Outside div one</div>
</div>
<div class="col">
<div>Other content</div>
<div class="outside-div">Outside div two</div>
<div class="outside-div">Outside div three</div>
</div>
</div>
</div>