blob: 4240df1659e408bcb48607c6233c42a897873a5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Test: baseline-aligned subgrid item</title>
<link rel="author" title="Matt Woodrow" href="mailto:mattwoodrow@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-2">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
html,body {
color:black; background-color:white; font:16px/1 Ahem; padding:0; margin:0;
}
.grid {
display: grid;
grid-template-columns: 50px 50px;
place-items: baseline start;
}
.first {
font-size: 3em;
}
.second {
font-size: 2em;
}
</style>
</head>
<body>
<div class="grid">
<div class="first">A</div>
<div class="second">A</div>
</div>
</body>
</html>
|