Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
&Hey everybody
This is my CSS-code for a button.
I use by the way Razor Engine in ASP.NET/C#.

It work in Safari and other web browsers except as IE-9
I read everywhere that IE-9 support ‘border-radius’. But it doesn’t work for me!!!

CSS
input[type="submit"] {
  border: 0px;
  margin: 5px 0px;
  padding: 0px 5px;
  color:White;
  height:20px;
  display: inline-table;
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  text-decoration:none;
  background: url(images/icon-button-middle.png) repeat-x;
  font-family: Calibri, Arial;
  font-size: 12px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 20px;
  border-radius: 3px;
  position:relative;
}

I thought maybe I can find content="IE=edge" in <meta http-equiv="X-UA-Compatible" content="IE=edge" />
and change it to content="IE=9", but I couldn’t find it in the application. Everywhere they use of jquery.

Any suggestion?
Posted

1 solution

I have googled for it, and it turned out, that border-radius wont work with (some) input elements in IE9. It is a bug in the CSS3 engine or the problem lies in the fact, that these elements in IE are rather API level controls. Other browser developers have rewritten them from the scratch. I have no IE9 to test, but have you tried BUTTON element instead? You could also try to make you input form a div decorated with this css and a transparent, border-less input field inside it.
 
Share this answer
 
Comments
Sandeep Mewara 11-Jun-12 4:43am    
5!
Utrech576 11-Jun-12 5:48am    
Thanks for your replay,
Do you know any jquery plug-in to fix this problem (border-radius)?
Zoltán Zörgő 11-Jun-12 7:37am    
You want to apply this css style to an element generated by jqueryui, or something that kind? I do't know about an out of the box solution, but you can write a document.ready handler that does this for you. Just be sure to be last.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900