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>
35 lines
544 B
HTML
35 lines
544 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: 100px 100px 100px;
|
|
}
|
|
.item {
|
|
height: 40px;
|
|
background-color: #eee;
|
|
}
|
|
.wide {
|
|
grid-column: 1 / 3;
|
|
height: 40px;
|
|
background-color: #bbb;
|
|
}
|
|
.placed {
|
|
grid-column: 3;
|
|
grid-row: 2;
|
|
height: 40px;
|
|
background-color: #999;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="grid">
|
|
<div class="wide">Spanning</div>
|
|
<div class="item">B</div>
|
|
<div class="placed">Placed</div>
|
|
<div class="item">D</div>
|
|
</div>
|
|
</body>
|
|
</html>
|