Basic Rectangle - Color Change on Hover

The button changes color on hover.

HTML:

Copy to clipboard
<a href='#'><div id='button-example-927'>Click here!</div></a>

CSS:

Copy to clipboard

#button-example-927 {

color: #fffff7; border: 1px solid #364D30; background-color: #364D30; padding: 20px 40px; font-size: 18px; font-weight: 600; width: 200px; text-align: center;

}

#button-example-927:hover {

border: 1px solid #D1B589; background-color: #D1B589;

}

Pumpkins n' Pies

For gluten-free baking enthusiasts and garden lovers: discover delicious, from-scratch recipes featuring sourdough, whole foods, and most importantly – pie! Explore gardening tips from east-central Illinois, along with a byte of code for fellow developers.
 © 2024 Abhishek & Miriam Chaturvedi