Skip to content

Instantly share code, notes, and snippets.

@yllieth
Created August 31, 2017 19:06
Show Gist options
  • Save yllieth/19c2a7c526389a73f56de5546da7b98f to your computer and use it in GitHub Desktop.
Save yllieth/19c2a7c526389a73f56de5546da7b98f to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="page">
<div id="nav-top-bar">topbar</div>
<div id="main-content">
<div id="nav-left-bar">nav left bar</div>
<div id="nav-left-menu">nav left menu</div>
<div id="content">content</div>
</div>
</div>
</body>
</html>
#page {
display: flex;
flex-direction: column;
height: 100vh;
#nav-top-bar {
display: flex;
flex-direction: row;
height: 100px;
background-color: red;
}
#main-content {
display: flex;
flex-direction: row;
flex: 1;
#nav-left-bar {
display: flex;
flex-direction: column;
width: 100px;
background-color: green;
}
#nav-left-menu {
display: flex;
flex-direction: column;
width: 200px;
background-color: blue;
}
#content {
display: flex;
flex-direction: row;
flex: 1;
background-color: yellow;
}
}
}
@yllieth
Copy link
Author

yllieth commented Aug 31, 2017

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment