BUTTON DESIGN With CSS

 Button Design:-

Code:-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin:0;
            padding:0;
            font-family:sans-serif;
        }
        body{
            display:flex ;
            justify-content:center;
            align-items:center;
            min-height:100vh;
            background:#f2f3f7;
        }
        a{
            positionrelative;
            display:inline-block;
            padding:10px 30px;
            text-decoration:none;
            text-transformuppercase;
            font-weight500;
            letter-spacing:2px;
            color:#5a84a2;
            font-size18px;
            border-radius40px;
            box-shadow:-2px -2px 8px rgba(255,255,255,1),
                        -2px -2px 12px rgba(255,255,255,0.5),
                        inset 2px 2px 4px rgba(255,255,255,0.1),
                        2px 2px 8px rgba(0,0,0,0.15);
        }

    </style>
</head>
<body>
    <a href="#"><span>Button</span></a>
</body>
</html>

Output:-



Comments

Popular Posts