Button with 4 triangles at 4 corners
What is the best way for me to create a button like this (shown in image)? In the worst case, I can think of having 4 divs inside the button with position:absolute for the triangles, but that is kinda a PITA, so I was wondering if there is a better approach
Solution:Jump to solution
I would have done the 4 div solution for simplicity
If u want another possible solution try using border by using an image as a reference there is a css proprety for taking an image as a border...
2 Replies
Solution
I would have done the 4 div solution for simplicity
If u want another possible solution try using border by using an image as a reference there is a css proprety for taking an image as a border
I ended up with the 4 div solution
for anyone else checking this and wanting some references, here is my code
one thing to note here is that the button color cannot have opacity with it, since the triangles have a few overlap with the main button