.imagebutton { color: #000000; background-color: #f3f3f3; border-bottom-color: #7b757b; border-left-color: #ffffff; border-top-color: #ffffff; border-right-color: #7b757b; border-width: 1px; border-style: solid; text-align: center; background-position: center; background-repeat: no-repeat; background-size: contain; width: 100%; height: 100%; } .imagebutton_over { color: #4179cd; background-color: #f3f3f3; border-bottom-color: #7b757b; border-left-color: #ffffff; border-top-color: #ffffff; border-right-color: #7b757b; border-width: 1px; border-style: solid; text-align: center; background-position: center; background-repeat: no-repeat; background-size: contain; width: 100%; height: 100%; } .imagebutton_down { color: #ffffff; background-color: #4179cd; border-bottom-color: #ffffff; border-left-color: #7b757b; border-top-color: #7b757b; border-right-color: #ffffff; border-width: 1px; border-style: solid; text-align: center; background-position: center; background-repeat: no-repeat; background-size: contain; width: 100%; height: 100%; }