I have an <img src="<...>.webp">
tag that I want to migrate to CSS. I worked out a nice solution that works in Chrome and shows the image centered:
HTML
<img id="logo">
CSS
#logo {
content: url("...");
margin: 0 auto 0 auto;
display: block;
}
No need for a container, background, width, height etc. However, in Firefox there is no output. What is the incompatibility here and what would be a clean solution to display an image in all major browsers identically?