I tried to make beveled edges through li:nth-child(2n):after li:nth-child(2n):before insert for even li -triangles (through absolute positioning) and in the same way for odd ... but any change in window size and all floating as I understand it is not the best way. Tried through perspective and tranform: rotateX() but how then to tranform: rotateX() with the 1st last element that does not have a bevel ... Tell me how you can implement such a menu ...
that's what I tried
ul { text-align: center; margin: 0px; display: flex; flex-flow: row wrap; padding-left: 0px; li{ padding: 20px 100px 30px 120px; text-align: center; background-color: #fff; flex: 1 1 100px; margin-left: 50px; box-shadow: 4px -4px 45px rgba(0,0,0,0.5); &:nth-child(2n):after{ width: 0px; height: 0px; border-bottom: 86px solid #fff; border-right: 30px solid rgba(255, 0, 0, 0); position: absolute; top: 0px; content: ""; left: 428px; } &:nth-child(2n):before{ width: 0px; height: 100%; border-bottom: 89px solid #fff; border-left: 35px solid rgba(255, 0, 0, 0); position: absolute; bottom: 0px; content: ""; left: -34px; } &:nth-child(odd):after{ width: 0px; height: 0px; border-top: 90px solid #fff; border-right: 35px solid rgba(255, 0, 0, 0); position: absolute; top: 0px; content: ""; left: 428px; } &:nth-child(odd):before{ width: 0px; height: 0px; border-top: 90px solid #fff; border-left: 32px solid rgba(255, 0, 0, 0); position: absolute; top: 0px; content: ""; left: 929px; } } html
<ul> <li><a href="">link<br><span>Boldlink</span></a></li> <li><a href="">link<br><span>Boldlin</span></a></li> <li><a href="">link<br><span>Boldlin</span></a></li> <li><a href="">link<br><span>Boldlink</span></a></li> </ul> so I put the triangles under a certain width of the screen in its place, but then I could not exclude the 1st and last element correctly (so that they do not display triangles), well, after the slightest resize, all the triangles crawl away who ...
