In working with a CMS, I've encountered some limitations where I can't change the markup directly. However, I am able to add custom classes to each list item (li). Despite these constraints, I need to achieve a specific layout using the existing markup. Here is the current structure:
<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>
While my current CSS produces this result: https://i.sstatic.net/IqFtR.png
My goal is to achieve this layout: https://i.sstatic.net/bfkEp.png
I'm wondering if implementing flexbox or similar techniques on the .sub-menu class could make this possible?
Edit: To clarify further, I've created a codepen for better visualization - https://codepen.io/anon/pen/ZRGxNE. Specifically looking to have the green block on the right side :)