Wednesday, November 3, 2021

Style Download Button

 Style Download Button Code

 <!DOCTYPE html>

<html>

    <head>

        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

        <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>Style Download Button</h1>


        <p>Auto width</p>

        <button class="btn"><i class="fa fa-download"></i>Download</button>

        <p>Full width</p>

        <button class="btn"Style="width:100%;"><i class="fa fa-download"></i>Download</button>


 </body>

</html>


CSS Download Button Style

.btn{

    background-color: dodgerblue;

    border: none;

    color: #fff;

    padding:12px 30px;

    cursor: pointer;

    font-size:20px;

}

.btn:hover{

    background-color: royalblue;

}


No comments:

Post a Comment

JavaScript Animated

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