HTML CSS examples for CSS Widget:Button
Style button on hover to have different color, background color and cursor
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .create_button{<!--from w ww. j ava2s .c o m--> margin-right: 20px; padding: 5px; border: 4px solid rgb(25, 25, 25); transition: all 0.2s ease-in-out 0s; background-color: rgb(140, 140, 140); color: black; } .create_button:hover{ color: rgb(255, 125, 0); background-color: rgb(25, 25, 25); cursor: pointer; } </style> </head> <body> <button class="create_button" name="button_create" type="submit">Tutorial erstellen</button> </body> </html>