Hacking CSS
There’s quite a few links out there that talk about the different methods of hacking IE and Firefox along with many other browsers.
Having been developing in Adobe Flex for the past while I’ve been ignoring the CSS issue but in my latest project I had to face the beast. My goal was to find a way in which I can block particular tags in both IE and in Firefox. so here’s what I found after doing some research.
For a page where you have an internal <div id=”pathway_text_inner”> the following will be ignored in Firefox:
#pathway_text_inner{
_width: 900px;
_padding-left: 10px;
_padding-top: 7px;
}
Pretty much anything that is preceded by an underscore is ignored in Firefox.
Similarly the following is ignored in IE7.
*:lang(en) #pathway_text_inner{
padding-left: 10px;
padding-top: 10px;
height: 20px;
overflow: hidden;
width: 890px;
}
where <body lang=”en”> .
I know there’s been quite a bit written about the subject but I couldn’t find the exact answer from the first Google search that I performed. Hence this post.
Cheers.