Jul
7
2011
Had read this in some blog … thought it was nice to catalog this for future ref …. also could be an important interview question that you would asked some day ….
Write a snippet of CSS that will display a paragraph in blue in older browsers, red in newer browsers, green in IE6 and black in IE7
#content p{color:blue}
html>body #content p {color:red}
* html #content p{color:green}
html>body #content p {*color:black;}
no comments | tags: FF Hacks, IE Hacks | posted in CSS
Nov
20
2008
In Firefox… sometimes you might have noticed that the cursor starts blinking on the screen. It might happen when you click on any element on the page , a division or an image etc. This Blinking Cursor in the browser window is actually an ACCESSIBILITY Feature of FireFox called ‘caret browsing’. This features allows/enables users to select text on the page with the keyboard ( Which we normally tend to do with the use of our mouse).
Well! if you donot want this feature … simple press “F7” to toggle it to false and vice-versa ( if you want it ON). You could also type “about:config” in the address bar (type in “caret” in the filter box) and simply double click to change the option “accessibility.browsewithcaret” from “true” (turn caret browsing ON) to “false” ( turn caret browsing OFF)
no comments | tags: FF Bugs, FF Fixes, FF Hacks, FF Issues, Firefox | posted in Browser Quirks
Sep
2
2008
Many 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 …
no comments | tags: FF Bugs, FF Hacks, FF Issues | posted in Browser Quirks, CSS, HTML, JavasScript