Halo, nama saya Agung. Berasal dari Denpasar, Bali. Blog ini adalah blog harian saya, dari curahan hati, dan beberapa tulisan untuk catatan pribadi

Menu & Search

IE 6 CSS Quick Fix

July 23, 2011

Absolute overflow hidden bug di IE 6, overflow region masih kelihatan. Solusi dengan menambahkan Height : 100% pada element relative parent nya.
z-index ga berfungsi di IE 6. Solusi dengan memberikan z-index lebih tinggi pada parent element nya.
PNG fix di IE 6 : dari http://www.komodomedia.com/blog/2007/11/css-png-image-fix-for-ie/. Sangat handy, tanpa perlu processing dengan JS. css ini dapat merubah background image & filter pada saat runtime.

* html img,
* html .png{
behavior: expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",
this.src = "transparent.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",
this.runtimeStyle.backgroundImage = "none")),this.pngSet=true)
);
}

Related article

Svara Living

Pada tahun ini, saya memulai mengeksekusi beberapa konsep pola pikir…

Sriyana Wardani

Dari awal tahun ini berbagai macam kejadian menerjang. Dari salah…

Pantaskah Anda?

Setiap orang pasti punya mimpi mencapai kesuksesan, dibidangnya masing –…

Discussion about this post

Leave a Reply

Your email address will not be published. Required fields are marked *

Type your search keyword, and press enter to search