is there a possibility to get it with css as shown on the picture ?
first = black
second = blue
the HTML structure is like this (and must not be changed)
<body>
<div class="wrapper">
<div class="sidebar">
<div class="container">
<div class="first"></div>
<div class="first"></div>
<div class="first"></div>
<div class="first"></div>
<div class="second"></div>
<div class="second"></div>
<div class="second"></div>
</div>
</div>
<div class="content">
</div>
</div>
</body>
I have already tried a few things, for example with postion absolute, but the blue div containers are only on top of each other
2
Answers
You can use flexbox but your container has to have a height and you need a spacer element.
Not sure if this will work for you. I tried to use a grid separate first and second menu you wanted then position them on absolute take a look at the sample CSS if this wont work let me know.