html - Textarea not responding to css -
all i'm trying here add css textarea reason isn't responding it. there particular way it's odd isn't working. simple answer here clues guys?
input[type="textarea"] { overflow: hidden; resize: none; border: none; overflow: auto; outline: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; height: 50px; width: 500px; margin: 0; }
<form method="post" action="mydoc.php" autocomplete="off"> <textarea name="tb_a1" cols="1" rows="2"></textarea> </form>
your css incorrect. field not input
, it's textarea
:
textarea { overflow: hidden; resize: none; border: none; overflow: auto; outline: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; height: 50px; width: 500px; margin: 0; }
<form method="post" action="mydoc.php" autocomplete="off"> <textarea name="tb_a1" cols="1" rows="2"></textarea> </form>
Comments
Post a Comment