Skip to content

Instantly share code, notes, and snippets.

@emilbjorklund
Forked from kaelifa/flexbox-test
Last active August 29, 2015 14:05
Show Gist options
  • Save emilbjorklund/476afcbec5f7bb0c82c4 to your computer and use it in GitHub Desktop.
Save emilbjorklund/476afcbec5f7bb0c82c4 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<style media="screen">
body {
margin: 0;
padding: 0;
}
.flex__container {
display: flex;
min-height: 100vh;
}
.flex__sidebar {
background: violet;
display: flex;
flex-direction: column;
margin: 0;
position: relative;
-webkit-user-select: none;
width: 30rem;
z-index: 1000;
}
.flex__main {
background: black;
flex: 1;
margin: 0;
}
</style>
</head>
<body>
<section class="flex__container">
<aside class="flex__sidebar">
SIDEBAR
</aside>
<figure class="flex__main">
main area
</figure>
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment