I’m trying to make a slight tweak to my button borders using box shadows but am unsure how.
The following Tailwind.css customization creates the following button border below:
boxShadow: {
'outline': '3px 3px 0px #777, -3px -3px 0px #777, -3px 3px 0px #777, 3px -3px 0px #777',
}
As you can see, it isn’t quite right on the left and right edges, where there’s a slight curl in which they don’t perfectly align. Does anyone know how to fix this so that it’s perfectly round around the entire border?
Thanks in advance.
2
Answers
use spread parameter of box-shadow property
You can also use this if you’re using TailwindCSS.
Result :