Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
holy_grail_layout
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
body {
margin: 0;
}
.header,
.footer {
min-height: 30px;
background: #aaa;
}
.left,
.middle,
.right {
min-height: 130px;
}
.left,
.right {
background: #00ff00;
}
.middle {
background: #ff0000;
}
</style>
</head>
<body>
<div class="header"></div>
<div class="container">
<div class="left"></div>
<div class="middle"></div>
<div class="right"></div>
</div>
<div class="footer"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment