Created
November 23, 2023 17:33
-
-
Save thomasdarimont/d267e8cddf4b084cb5c5b1f07f46394b to your computer and use it in GitHub Desktop.
Layout with 3 Columns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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