Re: xhtml styles

Oops - typo!

 <input type="password" id="input-password" />&nbsp;password area<br />
  ----- Original Message ----- 
  From: Martin E 
  To: Monica Moen ; www-html@w3.org 
  Sent: Friday, January 23, 2004 2:01 PM
  Subject: Re: xhtml styles


  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:18:59 UTC