What command do I need to use to make it not scale when I click the "Submit" or "Reset" button. I want them to look normal. I should use hover for this program but not for the last 2 buttons
See below the code I have so far. Everything is appreciated
<!DOCTYPE html> <html> <head> <title>CSS rules</title> <style> input:focus{ background-color: yellow; height: 40px; width: 280px; color: blue; font-size: 24px; } input:hover{ background-color: cyan; height: 40px; width: 280px; color: red; font-size: 24px; } </style> </head> <body> <form action=""> <table> <tr> <td>Last Name:</td> <td> <input type="text" id="LastName" /> </td> </tr> <tr> <td>First Name:</td> <td> <input type="text" id="FirstName"/> </td> </tr> <tr> <td>E-mail Address :</td> <td> <input type="password" id="Email"/> </td> </tr> <tr> <td> <input type="submit"/> </td> <td> <input type="reset"/> </td> </tr> </table> </form> </body> <!--body tag ends here--> </html> <!--html tag ends here-->
Tried using code but I can't figure it out
P粉0374504672024-04-02 00:52:36
CSS rules
Changed the way styles are called. By passing [type=text] in CSS, you ensure that only type=text and type=password pick up styles, and make the submit and reset buttons not pick up styles.