I am facing an issue with the alignment of a set of SVGs contained within a <span>
element appearing below a <p>
element. I want the span to line up with the text 'Question 1'.
Methods I have attempted:
- No conflicting margins or paddings were found.
- The paragraph text has a line-height of 0.
- Both elements are set to
display: inline;
instead ofdisplay: block;
.
I have provided a simpler example of the problem here (note that only one icon is shown due to complexity with multiple SVGs): https://jsfiddle.net/qt3c2m49/