CSS Forms Tips

Creating Great Web Form

1. Use Labels

label {
        float: left;
        text-align: right;
        margin-right: 15px;
        width: 100px;
}


2. Use the :focus Pseudo Class

textarea:focus, input:focus {
        border: 2px solid #900;
}

You may also like...