When you click an button HTML button, button goes inwards hence making the text inside the button move downwards slightly. My question is, how can I stop the button changing (going inwards) when it is clicked?
I hope you can understand my question.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After you have done whatever you like with the border etc., just put a span inside the button around the text like so:
<button class="button" type="submit"><span class="buttonspan">Blah</span></button>Then the CSS becomes:
Making sure to set the span absolute and the button relative.. works like a charm.