Box Shadow With HTML & CSS

 

                  




<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>box shadow</title>
    <style>
        *{
            padding:0;
            margin:0;
        }
        body{
            displayflex;
            align-itemscenter;
            justify-contentspace-around;
            width:100%;
            height:100vh;
            background-colorrgb(87185100);
        }
        .box{
            width:300px;
            height:300px;
            background-colorrgb(87185100);
            box-shadow5px 5px 10px rgb(5110958),
            -5px -5px 10px rgb(118255137);
        }
        .circle{
            border-radius50%;
        }
        .inside{

            box-shadowinset 5px 5px 10px rgb(5110759),
             inset -5px -5px 10px rgb(118255137);
        }
    </style>
</head>
<body>
    <div class="box "></div>
    <div class="box circle"></div>
    <div class="box inside"></div>
    
</body>
</html>


Post a Comment

Previous Post Next Post