webmaster resources tips and articles
webmaster information

Path = Home : Form Tips : How To Add Color To Form Input Boxes

How To Add Color To Form Input Boxes

The <input> tag is used to create input fields within a web page form.

You can change the font, input text color, input text size and the background color of the input box by using the style attribute.

<input name="submit" type="text" value="Input" style="color: #FF0000; font-family: Verdana; font-weight: bold; font-size: 14px; background-color: #FFFF66;" size="15">

 

Using an image for a submit button

Instead of using the standard form submit button, you can use an image.

<input type=image name="submit" src="home.gif" alt="Home" border="0"">

 

 

© janim.net 2000 - 2007 All rights reserved