Skip to content

Instantly share code, notes, and snippets.

@techwizzdom
Last active September 1, 2021 08:23
Show Gist options
  • Save techwizzdom/4e54258b8a36fd48981d1da18bd7bd21 to your computer and use it in GitHub Desktop.
Save techwizzdom/4e54258b8a36fd48981d1da18bd7bd21 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="container">
<div class="item">Item 1</div>
<div class="item">Item 2</div>
<div class="item">Item 3</div>
</div>
</body>
<style>
.container {
display: grid;
grid-template-columns: 1fr;
align-content: flex-start;
gap: 16px;
padding: 16px;
}
.item {
padding: 88px 16px;
}
@media (min-width: 992px) {
.container {
grid-template-columns: 1fr 1fr 1fr;
}
}
</style>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment