Styling the input text field

by banumathi 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>

Tagged in:

905
like
0
dislike
0
mail
flag

You must LOGIN to add comments