Type Safely

Type Safely

Change Horizontal and Vertical Spacing In a Grid

Daily Coding Tip 186

Millie Sturgeon's avatar
Millie Sturgeon
Oct 02, 2022
∙ Paid
assorted-color lockers
Photo by moren hsu on Unsplash

This is a quick example of how horizontal and vertical spacing can be used in a Grid.

In my Grid there are two rows of squares with a width and height of 50. The top row iterates through an array called colours from start to end, while the bottom row reverses this order.

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture