input[type=submit] CSS is not working in Internet Explorer 6

css

Solution

Instead, give the input a class, and then style it from there. Like this:

<input type="submit" class="myClass" value="Search" />

And then style the .myClass in your CSS. This should also work in IE6.

Problem

The below code is not working in Internet Explorer 6. I can't put `class` or `id` in it. Are there any CSS hacks for that? This code is in WordPress. I can't modify the code; I can only modify the CSS. ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> form input[type=submit]{ background-color:#FE9900; font-weight:bold; font-family:Arial,Helvetica,sans-serif; border:1px solid #000066; } </style> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <FORM action=""> <INPUT type=text name=s> <INPUT type=submit value=Search> </FORM> </body> </html> ```

Original source