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

What is Framer? Join the Community
Return to index
Stan Tan
Posted Mar 29 - Read on Facebook

Hi guys, I'm facing a small blockage on a page component assignment, where i could not add a padding on the right to my last layer inside the page component. My last layer is sticking to the most right corner of my screen and i wish to add a padding on it, or is there any alternative on making my this.layer focusing on the center of the screen every time? :(


Eelco Lempsink

Here’s the trick you’re looking for:
- Make the page component small than the screen width, so the padding happens _outside_ the component
- Set the ‘clip’ property of the page component to `false`, so the content still _shows_ along the full width of the screen

I applied this trick (and adjusted some values) in your project, see the result here:

Niels van Hoorn

Another way to do this, is to use the 'contentInset' property of PageComponent:

Stan Tan

Thanks guys! i totally missed this notifications , really helpful!

Read the entire post on Facebook