Wednesday, March 13, 2013

CSS

  1. An example to distinguish between Fire Fox, IE6, IE7 and IE8.

    HTML

    <!DOCTYPE html> <html> <head> <title>Test CSS</title> <style> #summary { background:red; /* Firefox */ background:blue \9; /* IE8 */ *background:yellow; /* IE7 */ _background:orange; /* IE6 */ } </style> </head> <body> <h1 id="summary">Hello World!!!</h1> </body> </html>

    Output

    Figure 1: Fire Fox
    Figure 2: IE6
    Figure 3: IE7
    Figure 4: IE8

No comments:

Post a Comment