Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .disabled { pointer-events: none; opacity: 0.3; } .button { border-radius: 20px; padding: 10px 15px; border: 1px solid #000; background: #b5b3b3; cursor: pointer; display: inline-block; margin: 10px; } .button-blue:hover { background: #75a4fa; } .button-green:hover { background: #53e05a; } </style> </head> <body> <div class="button button-blue"> Hover over this blue button </div> <br/> <div class="button button-green"> Hover over this green button </div> <br/> <div class="button button-blue disabled"> This is a disabled blue button </div> <br/> <div class="button button-green disabled"> This is a disabled green button </div> </body> </html>