input color: #00008B;background-color: #ADD8E6;border: 1px outset #00008B;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> <head> <title>CSS styled form elements</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <style> form { border: 1px dotted #AAAAAA; padding: 3px 6px 3px 6px; } form div { margin-bottom: 1em; } input.txt{ color: #00008B; background-color: #ADD8E6; border: 1px inset #00008B; width: 200px; } input.btn { color: #00008B; background-color: #ADD8E6; border: 1px outset #00008B; padding: 2px 4px 2px 4px; } </style> </head> <body> <form method="post" action="fields.html"> <div> <label for="name">What is your name?</label><br /> <input type="text" name="name" id="name" class="txt" /> </div> <input type="submit" name="btnSubmit" id="btnSubmit" value="Submit" class="btn" /> </form> </body> </html>