Created
May 3, 2012 13:51
-
-
Save jcsrb/2585782 to your computer and use it in GitHub Desktop.
Top and Bottom inset shadow
This file contains hidden or 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
/** | |
* Top and Bottom inset shadow | |
*/ | |
#element{ | |
background-color: #E3F2F7; | |
height: 55px; | |
position: relative; /* to position pseudo absolute*/ | |
overflow: hidden; /* to cut of overflow shadow*/ | |
margin-top: 200px; | |
} | |
#element:before , #element:after{ | |
content: "\0020"; | |
display: block; | |
position: absolute; | |
width: 100%; | |
height: 1px; /* when 0 no shadow is displayed*/ | |
box-shadow: #696c5c 0 0 8px 0; | |
} | |
#element:before { top: -1px} /* because of height: 1*/ | |
#element:after { bottom: -1px} /* because of height: 1*/ | |
This file contains hidden or 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 id="element"></div< |
This file contains hidden or 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":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment