I have this span within div
<div>
<span class="material-symbols-outlined" (click)="call()">
phone
</span>
<span> Phone</span>
</div>
the phone icon is not center align with the text phone
I tried text-align :center
also but is is not working, this div has some outer div also if I give margin-top to icon it shifting whole row
2
Answers
You can use flex to align these two spans:
You can write the style separately instead of inline CSS.
You can use
flex
property to align this. This property sets how a flex item will grow or shrink to fit the space available in its flex container. Note: If the element is not a flexible item, the flex property has no effect.