I have the following css code working in Firefox/Chrome but not in IE8
input[type='text']
{
float: right;
width: 170px;
}
If I remove the attribute selector, it works in IE but it applies to all the inputs, which I dont want.
input
{
float: right;
width: 170px;
}
I thought attribute selectors were supported in IE8, so I don't know what the problem is. It is not a matter of the code inside the input, from the moment I use the attribute selector, that css rule will not work whatever code is inside.
EDIT: Css rules for input[type="button"] and input[type="submit"] DO work, but for input[type="text"] DO NOT work. I'm really confused right now.