span.minibutton { background:#f2f2f2; color:darkgreen; word-wrap:break-word; opacity:1; transition:opacity 1.2s; } a.minibutton { text-decoration:none; } .minibutton:hover { opacity:0.7; color:yellow; background: red; text-decoration: none; word-wrap:break-word; font-size: 120%; }