Skip to content
Discussion options

You must be logged in to vote

Ah, I see, thank you. This is because of the my-2 on the <div>. This effectively doubles the top spacing between "Text" and the <div>, due to margin-block-end on the <p> from space-y-2 and the margin-block from the my-2 on the <div>.

I'm not sure what you are trying to achieve with the my-2 on the <div> but possible solutions to solve the inconsistent spacing: https://play.tailwindcss.com/cEswpu5pRq

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wongjn
Comment options

wongjn Jun 17, 2025
Collaborator

Answer selected by manueljenni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #18322 on June 17, 2025 06:20.