Skip to content

Instantly share code, notes, and snippets.

@danielmascena
Created July 14, 2017 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmascena/66accbc198b6d2fdf5c4647e01e5de44 to your computer and use it in GitHub Desktop.
Save danielmascena/66accbc198b6d2fdf5c4647e01e5de44 to your computer and use it in GitHub Desktop.
CSS Flexible Layout Module
/**
* CSS Flexible Layout Module
*/
body {
background: #bfbfbf;
min-height: 100%;
}
header {
background-color: blue;
min-height: 100px;
}
aside {
background-color: orange;
width: 34%;
min-height: 200px;
float: left;
}
.mainContent {
background-color: white;
width: 66%;
min-height: 200px;
float: right;
}
footer {
background-color: green;
width: 100%;
clear: both;
min-height: 100px;
}
<header role="banner">here is the header</header>
<div class="wrapper">
<div class="mainContent">Here is the main content</div>
<aside role="complementary">here is a sidebar, after the main content (although we want to make it appear before)</aside>
</div>
<footer role="contentInfo">here is the main footer</footer>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment