Operations with calc on CSS properties #5216
Answered
by
malashevskyi
michel-leanon
asked this question in
General
-
Hey! Can I use the "calc" function to calculate sizes on CSS? CSS Example: Is it possible on ChakraUI ? |
Beta Was this translation helpful? Give feedback.
Answered by
malashevskyi
Dec 9, 2021
Replies: 2 comments 3 replies
-
Why not? I recently used <ModalContent
maxW="calc(100vw - 50px)"
minH="calc(100vh - 25px)"
my="auto"
> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
segunadebayo
-
@michel-leanon
|
Beta Was this translation helpful? Give feedback.
2 replies
-
If you want to use calc with percentages you can try
This also works
I hope it works for you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not? I recently used
calc
to change modal sizeexample