Created
September 6, 2016 15:01
-
-
Save sudarshanReddykurri/2ea49c39264a3c72d54b377d58dba1c1 to your computer and use it in GitHub Desktop.
Slant Height to the Bottom Background in pure 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
| <div class="slant-left"> | |
| <div class="slant-left-inner" style="border-left-width: 1349px;"></div> | |
| </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
| .slant-left { | |
| width: 100%; | |
| } | |
| .slant-left .slant-left-inner { | |
| height: 150px; | |
| border-top: 120px solid #101010; | |
| border-left: 100vw solid #191919; | |
| position: relative; | |
| margin: auto; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment