

To view the area names, enable the Show area names checkbox. The row line labels show only computed sizes: 80px and 80px since there are no row sizes defined in the stylesheet. Therefore, the column line labels show both authored and computed sizes: 1fr - 96.66px and 2fr - 193.32px. In this demo, the snack-box column sizes are defined in the CSS grid-template-columns:1fr 2fr. Computed size: The actual size on the screen. # Show track sizesĮnable the Show track sizes checkbox to view the track sizes of the grid.ĭevTools will display - in each line label: Authored size: The size defined in the stylesheet (omitted if not defined). Showing line names makes it easier to visualize the start and end position of the element. In this demo, the orange element spans from left to right, with CSS grid-column: left / right. In this example, we have four lines with names: left, middle1, middle2 and right. You can select Show line names to view the line names instead of numbers. Select Hide line labels to hide the line numbers. # Show line numbersīy default, the positive and negative line numbers are displayed on the grid overlay. Let's examine these settings in more detail.

Extend grid lines: By default, grid lines are only shown inside the element with display: grid or display: inline-grid set on it when toggling this option on, the grid lines extend to the edge of the viewport along each axis.Show area names: Toggle to show or hide area names, in the case of grids with named grid areas.Show track sizes: Toggle to show or hide track sizes.Show line names: Show the line names for each grid overlay in the case of grids with line names.Show line numbers: Show the line numbers for each grid overlay (selected by default).Hide line labels: Hide the line labels for each grid overlay.A drop-down menu with the following options: The Overlay display settings consists of two parts:Ī. Let's look into each of these sub sections in detail. The Grid section in the Layout pane contains 2 sub sections: Observe the adjusted grid items and content in the viewport. In the Grid Editor, click the corresponding buttons to set the align-* and justify-* CSS properties for the grid items and their content. In the Elements > Styles pane, click the Grid Editor button next to display: grid. You can align grid items and their content with a click of a button instead of typing CSS rules. # Align grid items and their content with the Grid Editor When grids are included on a page, the Layout pane includes a Grid section containing a number of options for viewing those grids. Note: Similarly, you can also toggle the overlay of a subgrid with the subgrid badge.
