CSS hack: Javascript, CSS, HTML for Firefox only
September 2nd, 2008 by NikhilMany a times we feel the need to write browser specfic hacks (though it is not a good practice, we UI developers have to resort to such evils until the great Browsers Wars comes to a truce). Earlier , I had mentioned in this article For your IEs Only, how to write a CSS snippet that would be visible to IE browsers < IE7 only.
Yesterday, I had a case, where I wanted to write some FireFox specific CSS snippets. Well! I am not sure if there is a CSS code for this but there is a HTML. THERE IS A CATCH THOUGH, this piece of HTML doesnot pass HTML validation. But , anywaz! If you are stuck badly or as such, have no-regards for validation (sometime we have to be cruel), you could use the following to declare a link to a FF only stylesheet or even just code the CSS within this block. The code is
<comment> Put your FireFox only HTML/CSS/Scripts here </comment>
e.g.
   <comment>
       <style>
           /* Styles for FF only */
           fieldset{border:1px solid #dddddd;}
         </style>
    </comment>
I”m happy for the moment …
Tags: FF Bugs, FF Hacks, FF Issues
Subscribe to ExpressingIT by Email | Follow Me on Twitter