📜 ⬆️ ⬇️

png and IE even easier

During the layout I encountered the problem of displaying png in IE6. Search on Habra gave several solutions but they all did not fit for various reasons.

Task: there are 4 png pictures, you need to display them normally in IE6.

So here is the solution I found:
')
HTML:



CSS:
.bg_img {width:47px; padding:0; margin:0;background-color: #1f1e1a;}

It is necessary to specify the size of the picture, as practice has shown, only width is enough.
The “hot” code is torn straight from the project :-).

It seemed to me a very simple and convenient tool, at least for this task.

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


All Articles