I have an image within an li tag. The image appears correctly in Firefox and Chrome as shown below:
https://i.sstatic.net/cuKzS.png
However, in the Safari browser on iOS and macOS, the image is distorted:
https://i.sstatic.net/RhIVU.jpg
This is the code I am using:
<div class="colors">
<ul id="marker" class="d-flex flex-wrap ps-0 mx-3">
<li class="d-flex justify-content-center me-1 mt-1 me-md-2 mt-md-2 ms-xxl-4" id="marker-118" style="border:1px #FFD600 solid;width: 60px;height: 60px;2.jpg">
<img loading="lazy" style="cursor: pointer;" onmouseover="changeImage(this);" onmouseleave="changeImageLeave(this);" onclick="changeProduct('1164','118','0','0','FA','3250');changeColor('mm');" src="/1164/thumbnail/size_100/2.jpg">
</li>
</ul> </div>
My goal is to have the image in the li tag centered horizontally, similar to how it appears in Chrome and Firefox (as shown in the first image above).