Sunday, March 20, 2011

Setting up a style in form input button

By default, input button and submit type is not really in a good look.. I recommend to style it with a simple CSS entry below. Hope you like it!!

input[type="button"], input[type="submit"] {
    background-color#1E6591;
    border2px solid #1E6591;
    color#FFFFFF;
    font-size11px;
    font-weightbolder;
}


Details are as follows:
  • background-color - This is the background color of your button.
  • border - The border of your button.
  • color - The color of the text in a button.
  • font-size - The font size of the text of the button.
  • font-weight - The font weight of the text of the button. This is either normal or bold. By default it's equal to normal.

No comments:

Post a Comment