Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Change Horizontal and Vertical Spacing In a Grid

Change Horizontal and Vertical Spacing In a Grid

Daily Coding Tip 186

Millie Sturgeon's avatar
Millie Sturgeon
Oct 02, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Change Horizontal and Vertical Spacing In a Grid
Share
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.

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share