I am working on creating stylish buttons using as simple HTML as possible.
<input type="submit" value="Submit!" />
However, the style of the โpressedโ state is difficult. Everywhere I watch online, designers seem to have circumvented this issue by using anchors and then using the CSS :active pseudo-class. Unfortunately, this is not on the buttons. They have :focus , but this does not work the same.
So my question is this: Is it possible to style โdownโ without changing this HTML? I am ready to use jQuery if necessary, but I basically hope that there is a clean CSS solution that does not include bindings. What do you all recommend?
Thanks!
source share