This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Joseph Reni
Posted Nov 06 - Read on Facebook

Is there any way to make it so a text layer in a parent layer (think text on a button) keeps its center alignment if you change textLayer.text - without having to realign it again? It works if you use the design tool, but not if you create it in code. thoughts?


Kiko Herrschaft

have you tried = "inline-flex" = "center" ?

Jordan Robert Dobson

I would make the width of the text the width of the button.

Then center the text.

Jordan Robert Dobson

Should be what you need.

Read the entire post on Facebook