Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Styling links and inputs to look/act the same Re: Styling links and inputs to look/act the same

#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.. */
}