Created
June 25, 2012 17:20
-
-
Save sadaco/2989984 to your computer and use it in GitHub Desktop.
Nested Rules example css
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
| #cloud { | |
| width: 350px; | |
| height: 120px; | |
| background: #a9c6d2; | |
| border-radius: 100px; | |
| -webkit-border-radius: 100px; | |
| -moz-border-radius: 100px; | |
| position: relative; | |
| margin: 120px auto 20px; | |
| } | |
| #cloud:after, #cloud:before { | |
| content: ''; | |
| position: absolute; | |
| background: #a9c6d2; | |
| z-index: -1 | |
| } | |
| #cloud:after { | |
| width: 100px; | |
| height: 100px; | |
| top: -50px; | |
| left: 50px; | |
| border-radius: 100px; | |
| -webkit-border-radius: 100px; | |
| -moz-border-radius: 100px; | |
| } | |
| #cloud:before { | |
| width: 180px; | |
| height: 180px; | |
| top: -90px; | |
| right: 50px; | |
| border-radius: 200px; | |
| -webkit-border-radius: 200px; | |
| -moz-border-radius: 200px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment