Skip to content

Instantly share code, notes, and snippets.

@sudarshanReddykurri
Created September 6, 2016 15:01
Show Gist options
  • Save sudarshanReddykurri/2ea49c39264a3c72d54b377d58dba1c1 to your computer and use it in GitHub Desktop.
Save sudarshanReddykurri/2ea49c39264a3c72d54b377d58dba1c1 to your computer and use it in GitHub Desktop.
Slant Height to the Bottom Background in pure CSS
<div class="slant-left">
<div class="slant-left-inner" style="border-left-width: 1349px;"></div>
</div>
.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