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>
30 lines
459 B
HTML
30 lines
459 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: 100px 100px 100px;
|
|
gap: 10px;
|
|
}
|
|
.item {
|
|
height: 40px;
|
|
background-color: #eee;
|
|
}
|
|
.span2 {
|
|
grid-column: span 2;
|
|
height: 40px;
|
|
background-color: #bbb;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="grid">
|
|
<div class="span2">Spans 2</div>
|
|
<div class="item">B</div>
|
|
<div class="item">C</div>
|
|
<div class="item">D</div>
|
|
</div>
|
|
</body>
|
|
</html>
|