Neon Button In Html & Css

 Hello friends today we will create a Neon Button with only HTML & CSS.


             


 SOURCE CODE




<!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>Neon Buttons</title>
    <style>
        body {
            padding0;
            margin0;
            font-size20px;
            font-familysans-serif;
        }

        .container {
            background-colorblack;
            displayflex;
            justify-contentspace-around;
            align-itemscenter;
            height100vh;
            width100%;

        }

        a {
            text-transformuppercase;
            font-weight700;
            text-decorationnone;
            border-radius50px;
            letter-spacing5px;
            padding30px;
            transitionall .5s;
        }

        #btn1 {
            colorrgb(12551);
            border2px solid rgb(12551);
        }

        #btn2 {
            colorrgb(3217255);
            border2px solid rgb(3217255);
        }

        #btn3 {
            colorrgb(25511);
            border2px solid rgb(25511);
        }

        #btn1:hover {

            background-colorrgb(12551);
            colorblack;
            box-shadow0px 0px 50px rgb(12551);

        }

        #btn2:hover {

            background-colorrgb(3217255);
            colorblack;
            box-shadow0px 0px 50px rgb(3217255);

        }

        #btn3:hover {

            background-colorrgb(25511);
            colorblack;
            box-shadow0px 0px 50px rgb(25511);

        }
    </style>
</head>

<body>
    <div class="container">
        <a href="#" id="btn1">button</a>
        <a href="#" id="btn2">button</a>
        <a href="#" id="btn3">button</a>
    </div>

</body>

</html>



NOTE- If you like our work then please subscribe our channel Cool Programming Projects
and follow our facebook page @CoolProgrammingProjectsRJ.


1 Comments

Post a Comment

Previous Post Next Post