This question already has answers here:
Support for "border-radius" in IE
(11 answers)
Closed 8 years ago.
How to use border-radius in IE.(All Browsers)
because firefox,chrome support border-radius but how to use for IE?
you need try this:
.my-block {
-moz-border-radius: 10px; /* Firefox */
-webkit-border-radius: 10px; /* Safari, Chrome */
-khtml-border-radius: 10px; /* KHTML */
border-radius: 10px; /* CSS3 */
/* Для плохих IE */
behavior: url(border-radius.htc); /*IE border-radius */
}
Fortunately, IE can be quite beautiful to win his own means. One of my favorite solutions using VML and behaviour - curved-corner. To use merge border-radius.htc, we add next to CSS and use the following code: Spent time
Related
This question already has answers here:
Remove Default round border of <select> element in Mac OS Browser:Chrome
(4 answers)
Closed 6 years ago.
I have a select box which have a CSS property:
border: 1px;
This works well at Chrome but I have a problem with Safari. It is not fit to its container:
When I set CSS to:
border: 0px;
Problem is fixed:
However when border is set to 0 border totally disappears at Chrome.
How can I fix that problem? (setting that property only for Safari or any other ways).
This post shows how you can target different browsers:
-webkit-border-radius: 0; /* Safari 3-4, iOS 1-3.2, Android 1.6- */
-moz-border-radius: 0; /* Firefox 1-3.6 */
border-radius: 0; /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */
This question already has answers here:
Gradients in Internet Explorer 9
(10 answers)
Closed 9 years ago.
I have refered many sites for applying linear gradient to ie-9 and some links are saying not support as well as some link are saying it will work.can any body clear whether we can uselinear gradient or not?
This is my code:
.top_block
{
position: fixed;
display: block;
height: 150px;
width: 105px;
z-index: 9999;
background: -webkit-gradient(linear, left top, left bottom, from(#E9E9E9), to(#D3D3D3));
background: -moz-linear-gradient(top, #E9E9E9, #D3D3D3);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#E9E9E9', endColorstr='#D3D3D3',GradientType=0 );
margin-left:72px;
left: 36%;
top: 32%;
border: 6px solid white;
border-radius: 10px 10px;
-moz-border-radius: 10px 10px;
-webkit-border-radius: 10px 10px;
padding: 15px;
}
I have applied this not working in ie-9 as well as working working fine in firefox and ,chrome.
No, IE9 does not support the standard CSS gradients. This was only introduced in IE10.
IE9 does, however, support the old IE-specific -ms-filter style, in the same way as older IE versions did, so you can use this to generate gradients in IE9.
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#222222', EndColorStr='#AAAAAA')";
However, it is important to note that these filter gradients (and in fact IE's filter styles in general) have a number of bugs and quirks, some of which can make them difficult to work with.
For example, they are incompatible with CSS border-radius. If you use a filter gradient and border-radius on the same element, the gradient background will be displayed on top of the rounded corners and will hide them.
There is no way around this problem using the filter gradients.
So if you need to use gradient backgrounds and rounded corners on the same element in IE9, the best solution is to use a polyfill script such as CSS3Pie, which implements standard CSS gradients into IE9, and does it in a way that is compatible with border-radius.
This isn't the only problem you'll encounter when using filter styles, so my preference would be to avoid using them wherever possible. Polyfill scripts like CSS3Pie generally make things a lot easier to work with, and often do a good job of working around or avoiding the bugs in the fiter styles.
Hope that helps.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Any way to remove IEs black border around submit button in active forms?
I can see black border around button in IE7 on windows XP. Here is the css.
.disabled {
/* IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
/* IE 5-7 */
filter: alpha(opacity=60);
/* Netscape */
-moz-opacity: 0.6;
/* Safari 1.x */
-khtml-opacity: 0.6;
/* Good browsers */
opacity: 0.6;
}
I don't see any issue elsewhere except Windows XP IE7
I have a feeling that it's because the button is disabled. IE has some ugly disabled styles that you can't really work around. My next suggestion would be try to throw a border:0 on there and see what happens.
How can I create the following html/css style (rounded corners, basic background-color) highlighted in red box:
Use the border-radius CSS property to create rounded borders:
-moz-border-radius: 5px; /* Firefox 3.6-, removed in Firefox 13 */
-webkit-border-radius: 5px; /* Safari 4-, Chrome 3- */
border-radius: 5px; /* Firefox 4+, Safari 5+, Chrome 4+, Opera 10.5+, IE9+ */
You can leave out the prefixes, because Firefox 3.6 or old webkit browsers are almost extinct.
Although it's possible to get rounded corners in OldIE (IE8-) using divs+images or PIE.htc, I recommend against it: PIE is not very reliable, and adding several HTML hacks just to get something to work in old IE is a waste.
See also: MDN: border-radius.
How to create a rounded corner background box using CSS?
Use this css:
.box_round {
-moz-border-radius: 12px; /* FF1+ */
-webkit-border-radius: 12px; /* Saf3-4 */
border-radius: 12px; /* Opera 10.5, IE 9, Saf5, Chrome */
}
And then simply use the class in your HTML like this
<div class="box_round" style="background-color:red">This is a test</div>
I added the background-color:red - just for test puporposes so that you can see the rounded corenrs.
HTH
This is only supported in CSS 3.
Take a look at the CSS3 PIE project. It may help you with the problems related to CSS3 on old IE versions.