html - Css attribute selector for input type="button" not working on IE7 -


I am working on a larger form and it has all kinds of buttons, so I am trying to work In my main CSS file, input [type = "button"], so that all the buttons are captured by adding one square, for some reason it is not working on IE7, after checking it on the web, it says that IE 7

Additionally it should be type = "button" and do not type = "submit" and not all The button will submit the form.

Can anybody point out what I'm doing wrong?

  input [type = "button"] {text-align: center; }  

I also tried itemprop input [type = button]

I was struggling with selectors that worked in IE7 or IE8. Input [type = button] The problem was that the "DOCTYPE" declaration in the HTML pages was not missing. Once I added

   

Then everything worked fine. You can clearly use a different "! DOCTYPE" announcement to suit your needs.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -