Given the classnames "grid grid-cols-5 gap-2 place-items-end"
Is there a CSS-only way of resolving this ? Having to set a "col-span-4" on the 6h star from js is a bit tedious (considering the number of stars I can get is unknown).
Given the classnames "grid grid-cols-5 gap-2 place-items-end"
Is there a CSS-only way of resolving this ? Having to set a "col-span-4" on the 6h star from js is a bit tedious (considering the number of stars I can get is unknown).
Reversing the second row with direction: rtl;
will do the job.
HTML:
<div class="rtl-grid container w-96 bg-red-700 h-auto grid grid-cols-5 gap-4 p-4 -mt-4">
<div class="bg-white h-12"></div>
<div class="bg-white h-12"></div>
</div>
CSS:
.rtl-grid {
direction: rtl;
}
© 2022 - 2024 — McMap. All rights reserved.
direction: rtl;
can be a possible way to achieve it. play.tailwindcss.com/lVJN7npilZ – Ethbun