Basic Rectangle - Outline to Color on Hover

Outlined buttons are a clean, flexible choice - especially useful on saturated or textured backgrounds. Instead of using a solid fill, these buttons rely on a visible border and contrasting text color to stand out without overwhelming the design.

A common approach is to start with a white background and apply a contrasting colored border and matching text. On hover, the background and text colors swap, creating a high-contrast, interactive effect. This technique keeps the button lightweight while still clearly signaling interactivity.

HTML:

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

CSS:

Copy to clipboard

#button-example-939 {

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

}

#button-example-939:hover {

border: 3px solid #364D30; background-color: #364D30; color: #fff;

}

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 central Illinois, along with a byte of code for fellow developers.
 © 2025 Abhishek & Miriam Chaturvedi