Skip to content

Instantly share code, notes, and snippets.

@dtinth dtinth/flexlol.html
Created Mar 21, 2018

Embed
What would you like to do?
<!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>
.layout {
display: flex;
}
.sidebar {
width: 300px;
background: #abcdef;
}
.content {
flex-grow: 1;
background: #fedcba;
}
</style>
</head>
<body>
<h1>Top</h1>
<div class="layout">
<div class="sidebar">
Menu
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
</ul>
</div>
<div class="content">
X
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.