Styling the input text field
by banumathi[ Edit ] 2011-09-07 18:36:50
There are two ways to do this. The first is the 'proper' syntax - the second requires a new class:
<STYLE type="text/css">
input[type=text] {
width: 300px;
background-color: cyan;
}
input.text {
width: 300px;
background-color: yellow;
}
</STYLE>
<FORM>
<INPUT type="text"><br>
<INPUT class="text" type="text"><br>
<INPUT type="text"><br>
<INPUT type="submit">
</FORM>