hasan's blog (বল্গ)

work for fun!!!

Archive for May 31st, 2007

CSS Hack only for IE 6

with one comment

these days we got many browsers, sometime i feel if i were a king of the world i would love to eliminate all extra browsers. anyway, our designer bro (_ryan) and me were struggling to figure out some IE 6 specific hack. which won’t affect IE 7.x or other browsers.

we tried applying “@” prefix hack, for example: @width, but it worked on IE 6 and 7. so later we tried the old style “/* \*/” comment hack, exactly the same problem.

so suddenly our designer bhai (ryan), got a nice hack, it was “_”. for example: “_width: 22px”.

surprisingly it worked Wow on IE 6 without affecting IE 7 or other browsers. thanks allah, at least we found something that is working.

this blog is for those who are stucking with such problem.

best wishes,

Written by nhm tanveer hossain khan

May 31, 2007 at 2:51 pm

Posted in CSS, Introduction