Latest solutions
Responsive FAQ accordion card with tailwindcss and alpine.js
#tailwind-cssSubmitted almost 3 years ago
Latest comments
- @lenez12@blndcat
Hi Lenez,
- Here's my take on choosing between grid and flexbox for responsive layouts. In many cases what you can achieve with either will overlap. So in some cases it doesn't matter, however some things can be more easily implemented with one rather than the other. I learnt a lot by first using one for a layout and then trying to redo it in the other.
I tend to use grid for the general structure (skeleton-like) layout, and flex for individual details of components (things like navigation or a row of social media icons inside a card).
- As for article vs div, article is actually quite a general purpose tag/container, it isn't just for news/literary articles. It can be used for elements/components that repeat on the page and are similar in structure but have different info, like people profiles, testimonials, and yes things like blog posts.
Hope that helps!