📜 ⬆️ ⬇️

A little trick or background-repeat type in IE6

The png problem in ie6 and background-repeat is known, but it's not always that bad. For example, there is a translucent png with the size of 1x100, and you need to stretch it horizontally (make a strip). Someone will say that this is impossible, but do not rush, we will write a filter for IE6 something like this:

filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='css/img/menu-gradient-main.png', sizingMethod='scale');

We start and wonder ... It works! The whole chip is in the scale value of the sizingMethod property, it does just what we need, that is, it stretches png across the width of the container.

Similarly, you can stretch png and height. As a result, we, of course, get not a full-fledged background-repeat, but at least something ...

')

Source: https://habr.com/ru/post/60082/


All Articles