Skip to content

Styling Grid Lines

You can draw grid lines with a CSS background instead of GridBackground. Use the same column count, gaps, and row height as the layout so the lines stay aligned.

Try it: Drag or resize an item. Its edges and gaps should continue to match the CSS grid lines.

Live demo

Released under the MIT License.