Showing posts with label Eclipse Tips. Show all posts
Showing posts with label Eclipse Tips. Show all posts

29 March, 2010

Tips - CSS Targetting IE8, IE7 and IE6

IE8 and Below

The key to targeting Internet Explorer 8 and below, with a hack, is to append “\9″ to the end of your style. For example:
body {
 color: red; /* all browsers, of course */
 color : green\9; /* IE8 and below */
}
It’s important to note that it must be “\9″. Unfortunately you can’t replace this with something along the lines of “\IE”, like I attempted to do so. Even “\8″ won’t work; it must be “\9″.

IE7 and Below

We can use the * symbol to target IE7 and below, like so:
body {
 color: red; /* all browsers, of course */
 color : green\9; /* IE8 and below */
 *color : yellow; /* IE7 and below */
}

IE6

Lastly, we have the underscore hack, which most designers are familiar with by now. Rather than the * symbol, we use the underscore. This will target only Internet Explorer 6.
body {
 color: red; /* all browsers, of course */
 color : green\9; /* IE8 and below */
 *color : yellow; /* IE7 and below */
 _color : orange; /* IE6 */
}

20 February, 2010

Hide Closed Projects in Eclipse Project Explorer View

Ever wanted to hide all those closed projects in eclipse? Well, here is a simple trick that you may not know already.
Imagine your Eclipse workspace is filled with many projects that you created in past just to test some small functionality. Now you are done with these projects and hence you have closed it. Eclipse by default show all the closed projects in Project Explorer. Hence your project explorer may look like following where only two projects are open and rest competing for your attention although they are closed!

eclipse-close-project

Eclipse comes with a cool tiny feature that many of us not know. You may want to Hide all those closed projects from your workspace in Project Explorer tab. Simply follow following steps and do this is few seconds!
Step 1: Click on right corner of Project Explorer tab and open context menu. Select Filters option from menu.
eclipse-project-explorer-filter
Step 2: Check Closed Projects option from Filter and press Ok
eclipse-filter-close
Now check your project explorer tab, all the closed projects are gone! Doesn’t it looks more clean :)
We used Filters option to remove closed projects from Project Explorer tab. Filters provides more options to select and remove from displaying it from explorer view.

Courtesy: Viral Patel
Author: Viral Patel