2
Following example could get this result:
.menu {
margin: 0;
padding: 0;
list-style: none;
display: block;
width: 100%;
}
.menu li {
display: inline-block;
padding: 15px;
position: relative;
padding-left: 80px;
background-color: #d3d3d3;
overflow:hidden;
}
.menu li:before {
display: block;
content: " ";
width: 50px;
position: absolute;
left: -70px;
top: 0px;
height: 100%;
transform: rotate(-45deg);
box-sizing: border-box;
border-left: 150px solid #fff;
border-right: rgba(0, 0, 0, 0);
border-top: rgba(0, 0, 0, 0);
border-bottom: rgba(0, 0, 0, 0);
}
.menu li:not(:first-child) {
margin-left: 15px;
}
<ul class="menu">
<li>Menu 01</li>
<li>Menu 02</li>
<li>Menu 03</li>
</ul>
https://answall.com/questions/48152/css-div-diagonal
– Bsalvo