Can I set width of a component to this: calc(100% - 60px)?

Can I set width of a component to this: calc(100% - 60px)? I tried using formula but that seems to mean something else.

Hi Dennis :wave:

Sure thing. You’ll need to:

  • style the element with a 100% width (in the example below, the “text” element), and
  • include the element in a container (in the example below, the “div” element but it could be a flexbox).

At the container level, bind a formula to the “width”:

Note that when you type %, it will be replaced by mod in the formula but that will be fixed soon :slight_smile:

1 Like