I have this markup from a CMS, which I cannot change. The only thing I could do is add custom classes to every li. With these limitations I need to accomplish a particular layout. Here is my current markup:
<ul class="sub-menu">
<li><a>something</a></li>
<li><a>something</a></li>
<li><a>something</a></li>
<li><a>something</a></li>
<li><a>something</a></li>
<li><a>something</a></li>
<li class="somestuff">some markup</li>
</ul>
What I get with my current CSS is:
Is this possible using flexbox or something on .sub-menu ?
Edit: I've made a codepen so it's easier to understand - https://codepen.io/anon/pen/ZRGxNE I need the green block on the right :)