Cross browser compatibility issue of Internet Explorer 6, 7 and 8 for png/jpg image used as background of an html element - internet-explorer-8

When I use png/jpg image as background of an element of my html document, it's not compatible with Internet Explorer 6, 7 and 8. How can I fix this cross browser compatibility issue ?

Alhamdulillah ! I have solved my issue.
When I use the background property with the value of rgba colour like
background: url("images/cross.png") no-repeat scroll left center rgba(0,0,0,0,),
the code is not compatible with IE 6,7 and 8. It doesn't matter whether the image is png or jpg.
So, we have to use the property without colour or with hex colour code like
background: url("images/cross.png") no-repeat scroll left center;
or
background: url("images/cross.png") no-repeat scroll left center #000;
Then it'll be compatible.
Thanks

Related

gatsby static image 0X0

I'm using the new gatsby image plugin, and StaticImage. I have got a few images on the website, all works perfect normally beside one that only has the black background
(source of black, change the bg color attribute to red for example change the view to red)
The<picture> tag has 0X0 pixels
Another weird thing is the auto-created div container has a max-width of 47px, though the image is bigger than that (in all rest cases the max-width actually corresponds to the image dimensions)
relevant code
// js
<div className="advertising">
<StaticImage
className="advertising-img"
src="../images/advertising.png"
alt="advertising"
/>
//scss
.advertising {
position: relative;
margin: 123px 162px 150px 536px;
.advertising-img {
width: 260px;
height: 230px;
position: absolute;
left: -460px;
top: -15px;
}
page lookout (for understanding the CSS a little bit and show another picture that working..)
any help will be appreciated, thanks in advance! :)
edit
live site - https://catsh-landing-page.netlify.app/
The request to advertising image is blocked by the browser, as you can see by opening the dev tools.
In addition, the fact that is working on my mobile phone (screenshot below):
Makes me think that the image is blocked by the browser itself or by some extensions (AdBlock, etc) because of the name to avoid advertisers or publicity by default.
Try changing the name of the image or try disabling the extensions.

IE10 gray square on click in Windows 8

How to disable this horrible design stuff of microsoft programmers?
It's happens when I click on links.
Another horrible feature is dotted border on input elements. In past, this border disappear by adding outline: none to focus state of inputs.
Try the following meta
<meta name="msapplication-tap-highlight" content="no" />
It works for IE10/Windows Phone 8, not sure about Windows 8.
For whatever reason the meta tag didn't work for me on Windows 7 IE10, and I had to set
a:active{
background: inherit;
}
background: inherit;
Above does not work if your background color is differently set or has multiple settings.
Below is fail proof.
a:active{
background: none;
}

Is there a -moz-mask CSS property, like -webkit-mask-image?

It seems -moz-mask-image is not supported in Firefox.
I am attempting a foreground gradient. I can't use an image as i need the text to be selectable. Does anyone have any ideas for Firefox?
This version works in chrome and safari
css:
-webkit-mask-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.16, rgba(0,0,0,0)), color-stop(0.52, rgba(0,0,0,.5)), color-stop(0.77, rgba(0,0,0,1)));
-moz-mask: -moz-gradient(linear, left bottom, left top, color-stop(0.16, rgba(0,0,0,0)), color-stop(0.52, rgba(0,0,0,.5)), color-stop(0.77, rgba(0,0,0,1)));
According to MDN, you can just use mask for Firefox, as of Firefox 3.5:
https://developer.mozilla.org/en/CSS/mask
However, mask requires an SVG image to act as the mask. You might be able to base-64 encode your SVG image into your stylesheet, or you can use an SVG image file.

PNG-24 Background Image Blurry In IE8

I have div and span elements with PNG-24 background images. The background image is pixel sharp, however, they appear blurry in IE8 despite the browser's zoom being set at 100% and text at medium size.
Strangely, when I scroll down and back up, the background images appear sharp again.
This is how it appears:
After scrolling down and back up, this is how it appears:
Even in this case, its a bit blurry. This does not occur in IE6, IE7 or IE9.
I had the same problem - PNG-24 images look fine in Firefox but very blurry in IE8. The solution, in IE8 go to Tools > Internet Options > Advanced Tab. In the tree, under the Multimedia deselect Enable Automatic Image Resizing. This should fix the problem.
.classid img {
background: transparent;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); /* IE6 & 7 */
zoom: 1;
}

Is it possible to change the scrollbar width in windows gadgets?

Does anyone know if it is possible to create a thinner scrollbar for my windows gadget.
I am already using these attributes to change the scrollbar colors:
scrollbar-face-color: #EEEEEE;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #CCCCCC;
scrollbar-darkshadow-color: #FFFFFF;
scrollbar-shadow-color: #AAAAAA;
scrollbar-arrow-color: #000000;
scrollbar-track-color: #EEEEEE;
I was hoping that since the gadget seems to be using the IE rendering engine in quirks mode, there is some option to specify the gadget width?
I guess, if this is not possible, I could use some sort of jQuery plugin that imitates a scrollbar and allows for more customization...
Thanks!
I do not believe it is possible to actively change the width without developing your own control. The scrollbar width is a system wide setting, not an application dependent one. You can identify how wide it is though with: System.Windows.Forms.SystemInformation.VerticalScrollBarWidth;
Change Scrollbar information:
http://community.infragistics.com/forums/p/9516/37132.aspx
Identify Scrollbar Information:
How do I know the current width of system scrollbar?

Resources