.widget { position: fixed; bottom: 10px; right: 10px; width: 50px; height: 20px; text-align: center; border: 1px solid; padding: 10px; } .widget:hover { background-color: blue; color: white; cursor: pointer; }