I need to recreate an effect like this one in the header of my website. I would like to do it via CSS, anyone can help me cause I'm stuck with that triangle...
Here is my test:
#main-nav {height:200px;width:1200px;background-color:#000}
#triangle {
width: 0;
height: 0px;
border-style: solid;
border-width: 300px 300px 0px 0px;
border-color: #007bff transparent transparent transparent;
border-radius: 70px 2px 2px 2px;
margin: auto;
top: -400px;
position: relative;
/* background-color: #ccc; */
-moz-border-radius: 20px;
transform: rotate(-135deg);
/* border-top: 80px solid blue; */
/* border-bottom: 80px solid blue; */
/* border-right:80px solid blue; */
}
<div id="main-nav">
</div>
<div id="triangle">
</div>