on hovering a border color should change code example Example: on hover chang only border color of a button css .box:hover { border-color: purple; }