Problem
I am making a basic image carousel with Tailwind; I have been stuck with this problem where I as soon as I add absolute on<li> tag, the image disappears.
Added "relative" on outer tag as I saw some solutions mentioning it, but it didn't stop the image disappearing.
How can I make the image stop disappearing on browser when I still use the absolute property ?
Code
Here is my html code.
<link href="https://unpkg.com/tailwindcss@^2.0/dist/tailwind.min.css" rel="stylesheet">
<div
class="relative m-12">
<div class="flex justify-center">
<div class="relative">
<ul class="m-0 p-0 flex flex-row list-none">
<li class="absolute top-0 inset-0">
<div>
<a href="#">
<img class="object-cover object-center h-full block rounded-md"
src="https://i.imgur.com/tSxyAT4.jpeg" alt="altText" />
</a>
</div>
</li>
</ul>
</div>
</div>
</div>