HTML for creating floating button

<!DOCTYPE html>

        <html lang=”en”>

        <head>

          <meta charset=”UTF-8″>

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

          <title>Floating Button</title>

          <style>

            /* Style for the floating button */

            .float-btn {

                position: fixed;

                bottom: 10px;

                right: 550px;

                width: 100px;

                height: 18px;

                background-color: #0066ff;

                color: white;

                border: none;

                border-radius: 25px;

                padding: 15px;

                font-weight: bold;

                font-size: 16px;

                cursor: pointer;

                box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);

              transition: background-color 0.3s;

                z-index: 9999;

                display: flex;

                align-items: center;

                justify-content: center;

              }

            /* Hover effect for the floating button */

            .float-btn:hover {

              background-color: #0349b1;

            }

          </style>

        </head>

        <body>

        <form action=”#” method=”POST”>

        <button type=”submit” class=”float-btn”>Submit</button>

      </form>

        </body>

        </html>

Leave a comment

Your email address will not be published. Required fields are marked *