You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to achieve a pretty common layout. An element that takes the whole width (minus some horizontal padding) on mobile, and then is centered and fixed to a certain width on larger displays.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to achieve a pretty common layout. An element that takes the whole width (minus some horizontal padding) on mobile, and then is centered and fixed to a certain width on larger displays.
This is the effect I'm trying to achieve:
https://tailwindui.com/components/application-ui/data-display/description-lists
I have these two attempts:
with a container: https://play.tailwindcss.com/0NdePFUHME?layout=horizontal&size=564x720
without a container: https://play.tailwindcss.com/wpa268AZRd?layout=horizontal&size=798x720
I'd like to know which is more correct, and if there's a better, more standard way to achieve this basic layout
Thanks a lot
ps: unfortunately the source code for the tailwindUI component doesn't include the container
Beta Was this translation helpful? Give feedback.
All reactions