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>
24 lines
337 B
HTML
24 lines
337 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 2fr 1fr;
|
|
width: 400px;
|
|
}
|
|
.item {
|
|
height: 40px;
|
|
background-color: #ddd;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="grid">
|
|
<div class="item">A</div>
|
|
<div class="item">B</div>
|
|
<div class="item">C</div>
|
|
</div>
|
|
</body>
|
|
</html>
|