I have a number of built-in lists. I would like to place some below the rest. I can not change the markup. An example of this is below:
.lists ul {
display: inline-grid;
}
#under-first {
color: red;
}
<div class="lists">
<ul>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
<ul id="under-first">
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
<ul>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
<ul>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
<ul>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
<ul>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
</div>
Run codeHide resultRed list with identifier "under-first" I want to somehow position under the first list. I tried grid-rowalong with the change to flexibility and play with order, but that just moves the list around and doesn't actually position it below where I want it to go.
How can I do this best? I even tried to make a float.
source
share