Add shadows to elements – Askavy

0
14

Views: 18

No shadow

<div class="shadow-none p-3 mb-5 bg-light rounded">No shadow</div>

Small shadow

<div class="shadow-sm p-3 mb-5 bg-white rounded">Small shadow</div>

Regular shadow

<div class="shadow p-3 mb-5 bg-white rounded">Regular shadow</div>

Larger shadow

<div class="shadow-lg p-3 mb-5 bg-white rounded">Larger shadow</div>

Code Example

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Bootstrap 5 Form Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>

    </style>
</head>
<body>
    <div class="container py-3">
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="shadow-none p-3 mb-5 bg-light rounded">No shadow</div>
                <div class="shadow-sm p-3 mb-5 bg-white rounded">Small shadow</div>
                <div class="shadow p-3 mb-5 bg-white rounded">Regular shadow</div>
                <div class="shadow-lg p-3 mb-5 bg-white rounded">Larger shadow</div>
            </div>
        </div>
    </div>
</body>
</html>

Output:

Let us know if you liked the post. That’s the only way we can improve.

Source

LEAVE A REPLY

Please enter your comment!
Please enter your name here