Home › Forums › CSS › Styling links and inputs to look/act the same › Re: Styling links and inputs to look/act the same
May 17, 2012 at 10:28 pm
#103004
Taufik Nurrohman
Participant
IE? What version?
Maybe something like this:
input[type="button"],
input[type="submit"],
input[type="reset"],
button,
.button {
/* Reset first */
border:none;
outline:none;
padding:0;
margin:0;
display:inline-block;
text-decoration:none; /* For */
/* ... */
/* Etc... */
}
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover,
.button:hover {
text-decoration:none; /* For */
/* ... */
/* Something.. */
}
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
button:active,
.button:active {
/* Something.. */
}