I am struggling with aligning an image and a link inside a div using the display: flex property. This is how my code looks:
<div style="display: flex;">
<div class="site-title-container">
<img style="border-radius: 7px; width: 34px; height: 34px;" src="/assets/img/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="763f1519185b454436450e58061811">[email protected]</a>"> <!-- width="34" height="34" -->
<a class="site-title" rel="author" href="{{ " / " | relative_url }}">{{ site.title | escape }}</a>
</div>
//.....
</div>
CSS
.site-title-container {
float: left;
display: flex;
justify-content: center;
align-content: center;
}
I can't figure out why the image is not aligned to the center. Any suggestions?