Monday, November 1, 2021

icon button with text

 icon button with text 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>ICON Button</h1>

       <p>icon button</p>

       <button class="btn"><i class="fa fa-home"></i></button>

       <button class="btn"><i class="fa fa-bars"></i></button>

       <button class="btn"><i class="fa fa-trush"></i></button>

       <button class="btn"><i class="fa fa-close"></i></button>

       <button class="btn"><i class="fa fa-folder"></i></button>

       <p>ICON Button with text</p>

       <button class="btn"><i class="fa fa-home"></i>Home</button>

       <button class="btn"><i class="fa fa-bars"></i>Menu</button>

       <button class="btn"><i class="fa fa-trush"></i>Trush</button>

       <button class="btn"><i class="fa fa-close"></i>Close</button>

       <button class="btn"><i class="fa fa-folder"></i>Folder</button>



 </body>

</html>


CSS  icon button with text Style code

.btn{

    background-color: dodgerblue;

    border: none;

    color: #fff;

    padding:12px 16px;

    font-size:16px;

    cursor: pointer;

}

.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;...