My SVG icon is currently aligned to the left, but I want to center it. I tried using the following code, but it doesn't seem to be working:
.parent{
display: flex;
align-items: center;
font-size: 13px;
}
span{
margin-right:10px
}
https://i.sstatic.net/HlXml.png
When I look at the SVG icon, it's still not centered.
I also tried using flex like this:
svg{
display: flex;
align-items: center;
justify-content:center;
}
I even attempted to use text-align:center, but that didn't work either.