Generating a CSS Background Shape with CSS Clip Path

Image by skeeze from Pixabay

Updated Version

Scenario

Approach

clip-path: polygon(100% 0, 100% 57%, 54% 100%, 0 100%, 0 0);
div {
height: 100%;
clip-path: polygon(100% 0, 100% 57%, 54% 100%, 0 100%, 0 0);
background-color:rgb(180, 197, 27);
}

Demo

--

--

Founder of Firefly Semantics Corporation

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store