VL
Vinsoft Lab
Learn • Build • Innovate
Paid Web Development Intermediate

Tailwind CSS

Learn how to build modern, responsive and professional websites quickly using Tailwind CSS utility classes.

24 Lessons
4 Weeks Duration
Practical Learning
Your Progress 0%

Your progress is saved automatically in this browser.

Lesson 19 Tailwind CSS

Modals

Understand the structure of a modal dialog.

Learning approach

Study the Tailwind classes in the example, run the preview, then modify the classes and observe how the design changes.

Tailwind Example

HTML + Tailwind CSS

<div class="fixed inset-0 flex items-center justify-center bg-slate-950/60 p-5">

    <div class="w-full max-w-md rounded-2xl bg-white p-6 shadow-2xl">

        <h2 class="text-xl font-bold text-slate-900">
            Confirm Action
        </h2>

        <p class="mt-2 text-sm text-slate-500">
            Are you sure you want to continue?
        </p>

        <div class="mt-6 flex justify-end gap-3">

            <button class="rounded-lg border px-4 py-2">
                Cancel
            </button>

            <button class="rounded-lg bg-indigo-600 px-4 py-2 text-white">
                Continue
            </button>

        </div>

    </div>

</div>

Live Preview

Your Tailwind design will appear here.

Click Run Preview

See the lesson example here.

Quick Check

Test your understanding

Choose the best answer.

What is one major benefit of Tailwind CSS?

KEEP LEARNING

Build professional interfaces with Tailwind CSS.

Practice every lesson and turn your Tailwind knowledge into real websites and applications.