Q:

Text box CSS not working in IE

In my website, for all text boxes I have applied CSS below:
input[type="text"],input[type="password"]
{
    width: 240px;
    background: transparent url('bg.jpg') no-repeat;
    color : #747862;
    height:30px;
    border:0;
    padding:4px 8px;
    margin-bottom:0px;
}

It's working fine in Mozilla but not in IE. 
Please help me. 

A:

Attribute selectors do not work up until around IE7.  Use classes.