|
CodeAve.com - CSS - Miscellaneous | |||
|
|
|||
| Form Colors | ||||
|
|
||||
<html> <title>CodeAve.com - Form Colors</title> <body bgcolor="#FFFFFF"> <center> <form name="CSS_Color_Example"> <!-- Drop Down Menu Example --> <b>Drop Down Menu</b><br> <select name="selectname" SIZE="1"> <option style="background-color:#FF0000;"> Red background, no text color specified</option> <option style="background-color:#00FF00; color: #FFFFFF;"> Green background, White text</option> <option style="background-color:#000000; color: #FFFF00;"> Black background, Yellow text</option> <option style="color: #FF0000;"> No background color specified, Red text</option> </select> <!-- Text Input Field Example --> <p> <b>Text Input Field</b> <br> <input type="text" size="40" style="background:#000000; color:#FFFFFF" value="This text should be white with a black background"> <!-- Textarea Input Field Example --> <p> <b>Textarea Input Field</b><br> <textarea rows="4" cols="34" style="background:#FF0000; color:#0000FF"> This text should be blue with a red background</textarea> <!-- Radiobutton and Checkbox Example --> <p> <b>Radio Button and Check Box</b><br> (Technically there is no background to these,<br> but the surrounding area will accept background colors)<br> <input type="radio" style="background-color:#0000FF;"> <input type="checkbox" style="background-color:#0000FF;"> <!-- Button Example --> <p> <b>Button</b><br> <input type="submit" value="Green Button with Blue Text" style="background:00FF00; color:#0000FF"> </form> </center> </body> </html>
|
||||
|
|
||||