How to display two divs in exact same position using tailwind
Hi everyone, what's the best way display two divs on top of each other in the exact same position using tailwind?
I've found some tutorials that mention using grid-area:
https://css-tricks.com/positioning-overlay-content-with-css-grid/#aa-the-overlay-grid-area
But tailwind doesn't seem to support grid-area (found a library that extends it but not sure if there's a simpler way).
Thanks for your help!
Ryan Mulligan
CSS-Tricks
Positioning Overlay Content with CSS Grid | CSS-Tricks
Not news to any web developer in 2021: CSS Grid is an incredibly powerful tool for creating complex, distinct two-dimensional modern web layouts.
2 Replies