Created
July 14, 2017 15:10
-
-
Save danielmascena/66accbc198b6d2fdf5c4647e01e5de44 to your computer and use it in GitHub Desktop.
CSS Flexible Layout Module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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