I've been trying to center an image on my website, and it looks perfect when viewed on a desktop computer. However, when I load the page on a mobile phone browser, it appears a bit off.
This is the CSS code I'm using to center the image:
#logo
{
max-width: 60%;
min-width: 300px;
height: auto;
display: block;
margin-left: auto;
margin-right: auto
}
<header>
<img src="images/500x245.png" id="logo"</img>
<h1>Welcome to AppCloud</h1>
</header>
If anyone has any alternative methods or suggestions because my current method doesn't seem to be working properly, I'd appreciate it. Thanks!