Skip to content

Instantly share code, notes, and snippets.

@thomasdarimont
Created November 23, 2023 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasdarimont/d267e8cddf4b084cb5c5b1f07f46394b to your computer and use it in GitHub Desktop.
Save thomasdarimont/d267e8cddf4b084cb5c5b1f07f46394b to your computer and use it in GitHub Desktop.
Layout with 3 Columns
<!DOCTYPE html>
<html>
<head>
<title>Three Column Layout</title>
<style>
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
}
.grid-item {
background-color: #f0f0f0;
padding: 20px;
text-align: center;
}
</style>
</head>
<body>
<div class="grid-container">
<div class="grid-item">Column 1</div>
<div class="grid-item">Column 2</div>
<div class="grid-item">Column 3</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment