Created
February 24, 2017 23:15
-
-
Save CodeMyUI/93712b6f177d75217e795a8a4f6f8f2d to your computer and use it in GitHub Desktop.
Polygon Header
This file contains 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
<header> | |
<h1> | |
My Code Pen | |
</h1> | |
<h2> | |
Polygon Header | |
</h2> | |
</header> | |
<div> | |
*Clip-Path has very Limited Support. If you see horizontal header then browser not supported | |
</div> |
This file contains 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
header{ | |
background: red; margin: 0; padding: 2em 2em 10em; color:white; | |
text-align:center; | |
clip-path: polygon( | |
0 0, | |
200% -350%, | |
80% 100%, | |
0 30% | |
); | |
} | |
div{font-size: 0.8rem; padding: 2em;} | |
body{margin:0;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment