Skip to main content
Solved

How to get horizontal scrolling padding only at beginning and end


Tessa2

I’m a beginner to Figma. As one of my first projects, I’m trying to recreate the Spotify app homepage. There is supposed to be padding only on the beginning and end cards. Scrolling in the middle should have the cards extend from end to end without padding.

I added left padding to the beginning card, but can’t figure out how to add right padding to the end card. The inner auto frame has no padding and fits all the cards (individual cards have the rectangle and artist text grouped). The outer auto frame is the fixed screen width and has left and right margins of 21, clip content, and horizontal scrolling.

Best answer by Phu_Nguyen

For this case I usually add an invisible line at the end. Hope this helps:

View original
This topic has been closed for replies.

2 replies

Phu_Nguyen
  • Active Member
  • 43 replies
  • Answer
  • January 15, 2024

For this case I usually add an invisible line at the end. Hope this helps:


Tessa2
  • Author
  • 1 reply
  • January 15, 2024

Thank you so much!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings