Inputtext:
Textarea:
Textarea:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<style> #stylediv INPUT, #stylediv TEXTAREA{ font-family: Arial, serif; padding: 2px; /* a bit of breathing room*/ font-size: 20px; font-weight: normal; /* can change to bold */ width: 100%; color: white;/* The text in white*/ background-color: darkblue;/* Background-color: dark blue*/ overflow: auto; /*auto border */ border: none; /*auto border*/ } </style> <div id="stylediv"> Inputtext: <input type="text"> Textarea: <TEXTAREA rows="5" cols="50">This is a styled TEXTAREA !</TEXTAREA> </div> |