-
Notifications
You must be signed in to change notification settings - Fork 14
/
subgrid-gallery-cards-rows-repeat.html
executable file
·98 lines (93 loc) · 3.67 KB
/
subgrid-gallery-cards-rows-repeat.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Placing cards onto auto-rows with named lines</title>
<link rel="stylesheet" type="text/css" href="c/grid-baseline.css">
<style type="text/css">
@import url(c/subgrid-baseline.css);
body > *:not(#null) {padding-inline: 0;}
header.site > * {background: hsla(0deg,50%,50%,0.25);}
footer.site > * {background: hsla(240deg,50%,50%,0.25);}
main > * {background: hsla(120deg,50%,50%,0.25);}
header.site {display: grid; grid-template-columns: subgrid;}
header.site h1 {grid-column: 2 / span 5;}
header.site nav {grid-column: span 7 / -2; align-self: center; text-align: end;}
footer.site > .rowline {grid-column: 1 / -1; grid-row: 2;
background: transparent; border-top: 1px dashed #000A;}
footer.site {display: grid; grid-template-columns: subgrid; grid-template-rows: repeat(2,auto);}
footer.site img {grid-column: 5; grid-row: 1 / -1;}
footer.site nav {grid-column: 9 / -2; }
footer.site div {grid-column: span 7 / -2;}
</style>
<style type="text/css">
body {display: grid; grid-template-columns: repeat(16,1fr);}
:is(header, footer).site {grid-column: 1 / -1;}
main {display: grid; grid-template-columns: subgrid; grid-column: 2 / -2; grid-gap: 0;}
.gallery {display: grid; grid-template-columns: subgrid;
grid-auto-rows: max-content max-content auto;
grid-column: 2 / -2;}
.gallery > div {display: grid; grid-template-rows: subgrid [pic] [title] [desc]; grid-column: span 2; grid-row: span 3; padding: 0.5em; border: 1px solid; background: #FFF8;}
.gallery > div img {grid-row: pic; width: 100%; max-width: none;}
.gallery > div h2 {grid-row: title; align-self: center; margin-block: 0.25em 0;}
.gallery > div p {grid-row: desc; margin-block: 0.25em 0;}
main p.leadin {grid-column: span 7; text-align: justify;}
</style>
</head>
<body>
<header class="site">
<h1>ConHugeCo</h1>
<nav>
<a href="…">Home</a>
<a href="…">Mission</a>
<a href="…">Products</a>
<a href="…">Services</a>
<a href="…">Support</a>
<a href="…">Contact</a>
</nav>
</header>
<main>
<div class="gallery">
<div><img src="i/x-box.png" alt=""><h2>Lorem</h2><p>Ipsum eu. Jesse owens warrensville heights tempor dolor.</p></div>
<div><img src="i/x-box.png" alt=""><h2>Ipsum</h2><p> Bowling processus woodmere sed. Sammy kaye putamus jim lovell highland heights.</p></div>
<div><img src="i/x-box.png" alt=""><h2>Dolor</h2><p>Videntur hal holbrook george steinbrenner drew carey.</p></div>
<div><img src="i/x-box.png" alt=""><h2>Sit</h2><p>Est fred willard ozzie newsome humanitatis.</p></div>
<div><img src="i/x-box.png" alt=""><h2>Amet</h2><p>Uss cod ex independence lakewood iusto municipal stadium.</p></div>
<div><img src="i/x-box.png" alt=""><h2>Consectetur adipiscing</h2><p>Euismod collision bend. Nunc consectetuer. Dolore litterarum.</p></div>
<div><img src="i/x-box.png" alt=""><h2>Amet</h2><p>Uss cod ex independence lakewood iusto municipal stadium.</p></div>
<div><img src="i/x-box.png" alt=""><h2>Sit</h2><p>Est fred willard ozzie newsome humanitatis.</p></div>
</div>
</main>
<footer class="site">
<img src="i/conhugeco.png" class="logo">
<nav>
<a href="…">Home</a>
<a href="…">Mission</a>
<a href="…">Products</a>
<a href="…">Services</a>
<a href="…">Support</a>
<a href="…">Contact</a>
</nav>
<div class="sosumi">Copyleft 2112 ConHugeCo Inc. All lefts reserved.</div>
</footer>
<ul class="lines">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li
<ul>
</body>
</html>