PDA

View Full Version : CSS Forms problem


Neo
05-05-2000, 03:52 PM
When i apply CSS to a form it will not allow me to type into the form inputs here is the code i used:

<form method="Post" action="cgi-bin/form.cgi">
Name:<br><input type="text" name="name" size="0" maxlength="0" STYLE="background:404040" STYLE="color:808080"><br>
EMail:<br><input type="text" name="email" size="0" maxlength="0" STYLE="background:404040" STYLE="color:808080"><br>
ICQ#:<br><input type="text" name="icq" size="0" maxlength="0" STYLE="background:404040" STYLE="color:808080"><br>
Questions or Comments:<br><textarea name="questions" rows="6" cols="34" STYLE="background:404040" STYLE="color:808080"></textarea><br>
<input type="submit" value="Submit" STYLE="background:404040" STYLE="color:808080"><input type="reset" value="Reset" STYLE="background:404040" STYLE="color:808080">
</form>

i dont see why it does not work it will let me type in the textarea of the form but not the inputs

thx
Neo
i hope someone can help me

Jason
05-05-2000, 07:18 PM
Hi Neo,

It's not a CSS problem that you have, it's the maxlength. you have it set to "0" which means that the maxximum number of characters that can be entered is nothing.

Boost maxlength to a higher number to suit your needs.

------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jason M. DesRoches, Co-Founder, BigResources Network
jason@123webmaster.com
http://www.bigresources.com
ICQ: 17947522
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~