Skip to main content

I’m trying to get the border-box to hug the text-box as shown in the bottom of the screenshot.

I’ve set the border-box and the text to hug. The border-box has a max-width of 275 px, so the text line-breaks when it goes beyond that size. I just want the to hug the actual text so that I have my 16pt. margins as specified in the auto-layout.

Hi there,


Thanks for the post! If I understand correctly, you can do so by setting fill contents for the text box:





You can learn more about the auto layout properties:

Figma Learn - Help Center

I hope this is helpful but please feel free to let us know if you have more questions!


Thanks,

Toku