Wednesday, 16 December 2020

CSS Buttons

                                 CSS Buttons


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Css Buttons</title>
    <style>
        .button {
            font-size16px;
            padding12px 32px;
            displayblock;
            /* float: left; */
            margin25px 10px;
            bordernone;
            background-colorwhite;
            transition-duration1.5s;

        }
        .button:hover {

            box-shadow0 8px 8px rgb(128128128,0.5);
        }
        .btn1 {
            border2px solid skyblue;
            font-size10px;
            padding10px 24px;
            border-radius2px;
            
        }
        .btn1:hover {

            background-colorskyblue;
        }
        .btn2 {
            /* background-color: dodgerblue; */
            border2px solid dodgerblue;
            font-size15px;
            padding12px 28px;
            border-radius4px;
            
        }
        .btn2:hover {

            background-colordodgerblue;
        }
        .btn3 {
            /* background-color: red; */
            border2px solid red;
            font-size20px;
            padding14px 40px;
            border-radius8px;
            
        }
        .btn3:hover {

            background-colorred;
            box-shadow0 9px #999;
        }
        .btn4 {
            /* background-color: lightseagreen; */
            border2px solid lightseagreen;
            font-size25px;
            padding32px 16px;
            border-radius12px;
            width20%;
            transition:  2s;
            
            
        }
        .btn4:hover {

            width75%;
            background-colorlightseagreen;
        }
        .btn5 {
            /* background-color: violet; */
            displayinline-block;
            border2px solid violet;
            border-radius4px;
            font-size30px;
            padding20px;
            displayinline-block;
            /* border-radius: 4px; */
            /* width: 75%; */

        }
        .btn5:hover {

            background-colorviolet;
        }
        
        .btn5 span {
            /* display: inline-block; */
            positionrelative;
            transition.5s;
        }
        .btn5 span::after {
            content"\21C9";
            positionabsolute;
            /* padding: 20px; */
            /* margin; */
            font-size25px;
            top0px;
            right-25px;
            transition.5s;
            opacity0;
        }
        .btn5:hover span {
            padding-right25px;
        }
        .btn5:hover span::after {
            opacity1;
            right0;
        }
        /* .disabled {
            opacity: 0.2;
            cursor: not-allowed;
        } */
        .buttun {
            bordernone;
            background-color:#4caf50 ;
            box-shadow0px 8px #999,0px 8px #999 ;
            border-radius14px;
            font-size28px;
            padding:20px;
            width200px;
            text-aligncenter;
            /* transition-duration: 0.8s; */
            text-decorationnone;
            overflowhidden;
            cursorpointer;
            height80px;
            color#fff;
        }
        .buttun:active {
            box-shadow0px 6px grey,0px 6px grey;
        }
        /* .buttun::after {
            content: "";
            display: block;
            background-color: whitesmoke;
            padding-top: 300%;
            padding-right: 350%;
            margin-left:-350px ;
            margin-right: -20px !important;
            margin-top: -120%;
            opacity: 0;
            transition: all 0.8s;

        }
        .buttun:active:after{
            padding: 0;
            margin: 0;
            opacity: 1;
            transition: 0s ;
        } */
    </style>
</head>
<body>
    <h1>CSS ADvance Buttons</h1>
    <button class="btn1 button disabled">Click Me</button>
    <button class="btn2 button disabled">Click Me</button>
    <button class="btn3 button disabled">Click Me</button>
    <button class="btn4 button disabled">Click Me ❤😒</button>
    <button class="btn5 button disabled">Click Me<span></span></button>
    <button class="btn6 buttun ">Click Me</button>

</body>
</html>

No comments:

Post a Comment

Get Phone Number Details Using Python

 Get Phone Number Details Using Python Import Python module PHONENUMBERS using command " pip install phonenumbers" in you CLI Then...