1

I'm a beginner and i was just wondering if I can use SVG icons as buttons like make hover for them and active ? and if there is a way to make a border for them but around the shape straight not the box of the shape and fill the shape with a color? just using pure CSS

user2864740
  • 60,010
  • 15
  • 145
  • 220
  • this question will surely help you: [https://stackoverflow.com/questions/13630229/can-i-have-an-onclick-effect-in-css]() – Stephen.W Dec 25 '21 at 08:33
  • Does this answer your question? [How to style SVG with external CSS?](https://stackoverflow.com/questions/18434094/how-to-style-svg-with-external-css) – behzad m salehi Jan 03 '22 at 06:25

1 Answers1

0

You can wrap SVG elements in anchor tag or button tag to make them behave as a link or button respectively. To add border around the shape you can use the css stroke property

Khalil
  • 1,495
  • 6
  • 14