form style in IE

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

form style in IE

Post by m2babaey »

Hi
I used this style in my css:

Code: Select all

input[type=submit]  {
 background-color: #808080;
 color:white;
 font-weight:bold;
}
It's working in Firefox but not in IE
Do you know a solution?
Thanks for your help :P
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: form style in IE

Post by kaszu »

IE6 doesn't support attribute selectors, add a CSS class to the submit button, then it will work in IE6 also.

Code: Select all

<input type="submit" class="submit" value="Send" />

Code: Select all

input.submit {
Post Reply