How could I vertically align an image inside an svg
?
I saw this and it did not help. As you can tell from the jsfiddle attempt the dominant-baseline: central;
does not work or I am doing something wrong.
Will be grateful for any help provided.
Code:
<svg style="background-color:#f1fe96; border: 1px black solid;">
<image href="https://media.istockphoto.com/photos/plant-growing-picture-id510222832" width ="50" height = "50" style="dominant-baseline: central;"/>
</svg>