Implements basic CSS Grid with explicit and auto-placement, fr/px/auto track sizing, row-gap/column-gap, grid-column/grid-row placement (line numbers and span), justify-items alignment, and display: inline-grid. Splits the former single `gap` property into `row_gap`/`column_gap` throughout the codebase. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
369 B
HTML
25 lines
369 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: 100px 100px;
|
|
gap: 10px 20px;
|
|
}
|
|
.item {
|
|
height: 30px;
|
|
background-color: #ccc;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="grid">
|
|
<div class="item">1</div>
|
|
<div class="item">2</div>
|
|
<div class="item">3</div>
|
|
<div class="item">4</div>
|
|
</div>
|
|
</body>
|
|
</html>
|