Thursday, October 28, 2021

Button-Groups

Button-Groups Code

<!DOCTYPE html>

<html>

    <head>

        <meta name="viewport" content="width=device-width, initial-scale=1.0">

         <link rel="STYLESHEET"type="text/css"href="web.css">

        <title>web design</title>

    </head>

    <body>

        <h1>CSS Button Group</h1>

        <div class="btn-group">

            <button class="button">button</button>

            <button class="button">button</button>

            <button class="button">button</button>

            <button class="button">button</button>

        </div>

 </body>

</html> 


CSS Button-Groups Style Code

.btn-group,.button{

    background-color: green;

    border: none;

    color: #fff;

    padding: 15px 32px;

    text-align: center;

    text-decoration: none;

    display: inline-block;

    font-size: 16px;

    margin:4px 2px;

    cursor: pointer;

    float: left;

}

.button:hover{

    background-color: gray;

}

No comments:

Post a Comment

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...