Sachin Titus
Sachin Titus

Reputation: 2339

NextJs Image does not show on Safari

I am using NextJs for my website. Here is the code I'm using for showing Images

      <Image
      src={`/p1.png`}
      layout={"fill"}
      objectFit="contain"
      objectPosition="center"
      alt={"publication image"}
    />

This image is visible on all browsers except Safari. How can I make it visible on Safari as well? Thanks in advance

Upvotes: 1

Views: 3127

Answers (1)

Sachin Titus
Sachin Titus

Reputation: 2339

I got the issue fixed. The image container did not have position set as relative

Upvotes: 1

Related Questions