Last active
April 13, 2018 19:21
-
-
Save zippaaa/c3dab1e6e2fbe3a42e5d31d17b1f3aeb to your computer and use it in GitHub Desktop.
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| <style> | |
| .block_bg { | |
| position: relative; | |
| overflow: hidden; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background: url("http://csssecrets.io/images/tiger.jpg") no-repeat center; | |
| background-size: 100vw auto; | |
| padding: 50px 0; | |
| } | |
| .block_bg:before { | |
| content: ''; | |
| background: inherit; | |
| background-size: inherit; | |
| overflow: hidden; | |
| filter: blur(10px); | |
| border-radius: 17px; | |
| width: 400px; | |
| height: 200px; | |
| } | |
| .block { | |
| width: 380px; | |
| height: 180px; | |
| margin-left: -400px; | |
| z-index: 1; | |
| background: rgba(255, 255, 255, 0.3); | |
| color: #fff; | |
| padding: 10px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div> | |
| <div class="block_bg"> | |
| <div class="block"> | |
| <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. | |
| <p>Ab aperiam, aspernatur commodi cumque hic in laborum modi nihil nobis odio optio porro provident quas | |
| quibusdam reprehenderit repudiandae, sint vel voluptas? | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment