<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/assets/reset.css" rel="stylesheet">
<link href="setup.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<ol>
<li>
<p>Item 1</p>
</li>
<li>
<p>Item 2 <br>with line <br>breaks</p>
</li>
<li>
<p>Item 3 <br>also</p>
</li>
<li>
<p>Item 4</p>
</li>
</ol>
</body>
</html>
ol {
display: grid;
grid-auto-rows: 160px;
grid-template-columns: repeat(2, 1fr);
}
li:first-child {
justify-self: stretch;
align-self: stretch;
}
li:nth-child(2) {
justify-self: start;
align-self: start;
}
li:nth-child(3) {
justify-self: center;
align-self: center;
}
li:nth-child(4) {
justify-self: end;
align-self: end;
}