CSS Grid — Dev Tools

Emily Y Leung
Apr 11 · 3 min read

Live dev notes taken throughout the CSS Grid course by Wesbos — cssgrid.io

Tracks are considered “untouchable” because they aren’t the same as elements in a html page.

But we can inspect them as we build our grid(s)— through dev tools.

Two ways to open the inspector:

  1. Ctrl + Shift + i
  2. Right click the page > Inspect element

To display the grid highlighting, select the container and toggle the grid button under the ‘Rules’ tab.

To view just the grids, you can find them under the ‘Layout’ tab.

The reason why there are “items” shown in the list is because the base CSS file by default has display: grid on any element with class="item" .

Grid Highlighting Settings


Depending on your design, it might be easier to switch the colour of the tracks to a light or dark colour.

Display line numbers

Makes it easier to pick out where to place items.

Display grid names

Add custom names to your grid areas to make it easier to pick out where to place items.

More on this later.

Extend lines infinitely

Show where your lines would extend in the case of implicit tracks.

How to read tracks

The tracks are not numbered by the column, but rather the lines that start and stop them. So you’ll always have a count of one more than the number of columns / rows you have.

Solid lines

Start and stop of the explicit grid

Dashed diagonal lines

The area which makes up the grid-gap

Dashed lines

Defines the explicit tracks (we specified)

i.e. grid-template-columns: 100px 200px

Dotted lines

Defines the implicit tracks (we didn’t specify)

i.e. did not declare grid-template-rows


“something small, every day” — Austin Kleon

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store