Thursday, October 21, 2021

CSS Button Sizes

  CSS Button Sizes 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>Button Sizes</h1>

        <button class="button button1">10px</button>

        <button class="button button2">16px</button>

        <button class="button button3">20px</button>

        <button class="button button4">24px</button>




    </body>

</html>


 CSS Button Sizes Style

.button{

    background-color: green;

    border: none;

    color: #fff;

    padding:15px 32px;

    text-align: center;

    text-decoration: none;

    display: inline-block;

    margin:4px 2px;

    cursor: pointer;

}

.button1{font-size:10px ;}

.button2{font-size:16px ;}

.button3{font-size:20px ;}

.button4{font-size:24px ;}

No comments:

Post a Comment

JavaScript Animated

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