faqts : Computers : Programming : Languages : JavaScript : Forms : TextAreas/TextFields

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

59 of 63 people (94%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Can I remove the border of a text field/text area?

Mar 25th, 2000 16:40
Martin Honnen,


With IE4+ and NN6 you can use css
  border: 0px solid white;
to achieve that, NN4 does ignore those settings.
Complete example:

<HTML>
<HEAD>
<STYLE>
.javascript {
  border: 0px solid white; 
  background-color: orange; 
  color: white;
}
</STYLE>
</HEAD>
<BODY>
<FORM NAME="formName">
<INPUT TYPE="text" SIZE="20" NAME="aField"
       VALUE="JavaScript.FAQTs.com"
       CLASS="javascript"
>
<BR>
<TEXTAREA NAME="aTextArea" ROWS="5" COLS="20" WRAP="soft"
          CLASS="javascript">
JavaScript.FAQTs.com
</TEXTAREA>
</FORM>
</BODY>
</HTML>