Created
October 27, 2012 15:15
-
-
Save usefulthink/3965043 to your computer and use it in GitHub Desktop.
content-box shadows part I
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
/** | |
* content-box shadows part I | |
*/ | |
body { | |
background-color: #666; } | |
.container { | |
width: 80%; height: 800px; | |
border-radius: 50px; | |
overflow: hidden; | |
margin: 0 auto; } | |
.left, .right { | |
width: 50%; height: 100%; } | |
.left { float: left; z-index: 2; background: #eee; } | |
.right { float: right; z-index: 1; background: #cceeee; } | |
.left { box-shadow: 10px 0 30px 0px rgba(128,128,128,0.5); } | |
@media only all and (max-width: 600px) { | |
.left, .right { | |
float: none; | |
width: 100%; height: 50%; } | |
} |
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
<div class="container"> | |
<div class="right"></div> | |
<div class="left"></div> | |
</div> |
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-vertical","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