Skip to content

Translate using calc adding extra calc breaking intended style #14471

Answered by adamwathan
altrae asked this question in Help
Discussion options

You must be logged in to vote

Hey! This is because you are using the -translate-y-[calc(50%-.75rem)] class instead of translate-y-[calc(50%-.75rem)] — the dash at the beginning is the negative modifier and tells Tailwind to multiply the value by -1.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by altrae
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 #14470 on September 20, 2024 00:02.