Skip to content

Instantly share code, notes, and snippets.

@myles

myles/style.css Secret

Created April 3, 2016 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myles/8cf6bbe1519d4fd4c1609f5b7d064eda to your computer and use it in GitHub Desktop.
Save myles/8cf6bbe1519d4fd4c1609f5b7d064eda to your computer and use it in GitHub Desktop.
/* Cascading stylesheet for form elements such as buttons
* "equal" and "clear" are two class names I gave for form buttons
*/
.equal {
background-color: #4CAF50; /* Green */
border: 2px solid black;
color: white;
padding: 4px 7px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
width: 50px;
}
.equal:hover {
background-color: #aefe41;
color: black;
}
.clear {
background-color: #FF0000; /* Red */
border: 2px solid black;
color: yellow;
padding: 4px 7px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
width: 50px;
}
.clear:hover {
background-color: #FFABAB;
color: black;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment