I want to know how to resize the svg element, because I can't did it when I try. And my second question is if I did the button well, because I feel that part complicated for the svg element and I didn't know how to created in the better way.
Laura Alvarez
@lalvarezzAll comments
- @CeriOwlSubmitted over 2 years ago@lalvarezzPosted over 2 years ago
Hey, Ale! I was having issues with the button icon as well, however, just consider your button as any other div, in order to adjust the icon width you just have to use .button img{width: 1em;} this will make your icon width the same as your font-size.
I also recommend you to study object-fit property, this will help you as well for re-sizing small icon into divs, so the css button could have these properties .button img{width: 1em; object-fit: contain;}. It takes a little bit of practice. I hope it helps you!
Marked as helpful1