Skip to content
Discussion options

You must be logged in to vote

Hey Tak,

I was wondering about this, and came up with a pure Tailwind solution that will work in your case. Here's a play: https://play.tailwindcss.com/jPbHqRyZN5

Basically I inserted an inner container div which is also rounded and this hides any overflow. It then relies on the CSS behaviour of absolute children going up to the nearest "placed" parent, which in this case is the outer div.

Cheers,
Martin.

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
@takdw
Comment options

Answer selected by takdw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants