- 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>
Received on Friday, 23 January 2004 17:07:31 UTC
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" /> text area <br />
<input type="password" / id="input-password"> 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 UTC