W3C home > Mailing lists > Public > www-html@w3.org > January 2004

Re: xhtml styles

From: Martin E <espmartin@hotmail.com>
Date: Fri, 23 Jan 2004 14:01:51 -0800
To: "Monica Moen" <monica@spsp.com>, <www-html@w3.org>
Message-ID: <BAY2-DAV46bnnlnDQNw00009d05@hotmail.com>
IE doesn't support element[type=anything] - you can, however, access the form fields by:

p { /* just to make the test form look good */
 border: 1px solid #3c0;
 padding: 20px;
 text-align: left;
 }
input { /* all input fields in form */
    border:solid #7F9D89 1px;
 color: blue;
    }
#input-password { /* password input box, specified by an ID */
    border:solid #7F9D89 1px;
 color: red;
    }





XHTML:



<form action="#">
 <p>Test form<br />
 <input type="text" />&nbsp;text area <br />
 <input type="password" / id="input-password">&nbsp;password area<br />
 </p>
</form>



HTH

Martin E.

    
  ----- Original Message ----- 
  From: Monica Moen 
  To: www-html@w3.org 
  Sent: Friday, January 23, 2004 1:34 PM
  Subject: xhtml styles


  I'm trying to add styles to form fields.  I have the following in my css, but it doesn't work in IE.  Is this the proper syntax?

   

  input[type=text]{

  border:solid #7F9D89 1px;

  }

  input[type=password]{

  border:solid #7F9D89 1px;

  }
Received on Friday, 23 January 2004 17:07:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:59 GMT