DEV Community

M. T. H. Titumir
M. T. H. Titumir

Posted on

Centering a div inside his sibling div using tailwind css.

<div class="relative">
<div>
<img src="your-image.jpg" alt="Your Image">
</div>
<div class="absolute inset-0 flex items-center justify-center">
<!-- Contents of the second div -->
</div>
</div>

Top comments (0)

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

Sign in to DEV to enjoy its full potential—unlock a customized interface with dark mode, personal reading preferences, and more.

Okay