Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
The tan() Function
Use tan() to set the width of elements:
width: calc(100px * tan(45deg)):
Hello World!
calc(100px * tan(0.125turn)):
Hello World!
width: calc(100px * tan(0.5773502)):
Hello World!
width: calc(100px * tan(pi / 3)):
Hello World!