Skip to content

Instantly share code, notes, and snippets.

@orioltf
Created December 17, 2011 13:48
Show Gist options
  • Save orioltf/1490258 to your computer and use it in GitHub Desktop.
Save orioltf/1490258 to your computer and use it in GitHub Desktop.
#CSS: CSS only visual rich section division
/**
* CSS only visual rich section division
*/
body {
background-color: #264e86;
color: #fff;
font-size: 2em;
}
#main {
width: 90%;
margin: 3em auto 0;
}
#main section {
width: 90%;
margin: 0 auto 50px;
position: relative;
}
#main section:after {
content: " ";
display: block;
height: 30px;
-webkit-border-radius: 0 0 10px 10px;
-moz-border-radius: 0 0 10px 10px;
-o-border-radius: 0 0 10px 10px;
-khtml-border-radius: 0 0 10px 10px;
border-radius: 0 0 10px 10px;
background: #264e86;
background: linear-gradient(top, #264e86, #1d3a64);
margin-left: -33px;
margin-right: -33px;
margin-top: 2px;
}
<div id="main" role="main" class="row">
<section>
... Section 1 ...
</section>
<section>
... Section 2 ...
</section>
</div>
{"page":"css","view":"split-vertical"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment