Saturday, April 12, 2014

How do I change the style of a HTML form button?

When adding a button to a web page, it is recommended that you use CSS to create its styling. Utilizing CSS is the preferred method as it is a more efficient and organized way to store style code for reuse in more than one area on your page or site. As you can see with the example below, there are many attributes to manipulate on each button type.


You can see from the above pictures that when the mouse is not hovering over the button, the button has a light gray background and white text, when is the button's background changes to blue. Also, the corners of the button are rounded instead of squared off, like a standard form button

No comments:

Post a Comment

Share this

Related Posts Plugin for WordPress, Blogger...