Monday, March 29, 2010

Importance of !important in CSS

CSS rules marked !important take precedence over later rules. Normally in CSS the rules work from top to bottom, so if you assigned a new style to an element further down the style sheet or in a secondary style sheet then the later rule would take precedence. !important ensures that this rule has precedence
Example #1: Normal behaviour
#example p {
color: blue;
}
...
#example p {
color: red;
}

The later rule overrides the earlier rule, and paragraphs within #example will be red.

Example #2: Using !important
#example p {
color: blue !important;
}
...
#example p {
color: red;
} 
The first rule now has precedence so the later rule is ignored and the paragraph will be blue.
Note:
Internet Explorer 6 will apply whatever the last style declared is, and takes no notice of !important declarations. So in Example #1 above, the other browsers would display the paragraph in blue but IE6 would display it in red.

Friday, March 26, 2010

Google Buzz

Old Snakey In Gmail

Gmail have game too The OLD SNAKEY Game.

How to enable that

To enable this game in gmail click on google labs icon in topbar of your Gmail window and enable Old snakey from gogole labs options and after that save it Gmail window refresh automatically after that just hit shift+7 from your keyboard and enjoy Old Snakey middle of gmail

oldsnakey

Favicon

Browser ICO PNG GIF animated GIFs JPEG APNG SVG Google Chrome Yes 4.0 4.0 No 4.0 No No Internet Explorer 4 No No No No No No Mozilla Firefox Yes Yes Yes Yes Yes 3.0 No[5] Opera Yes Yes Yes Yes Yes Yes 9.6 Safari Yes 4.0 4.0 ? 4.0 No No A favicon (short for favorites icon), also known as a website icon, shortcut icon, url icon, or bookmark icon is a 16×16, 32×32 or 64×64 pixel square icon associated with a particular website or webpage.[1] A web designer can create such an icon and install it into a website (or webpage) by several means, and most graphical web browsers will then make use of it. Browsers that provide favicon support typically display a page's favicon in the browser's address bar and next to the page's name in a list of bookmarks. Browsers that support a tabbed document interface typically show a page's favicon next to the page's title on the tab. Some programs allow the user to select an icon of his own from the hard drive and associate it with a website.

 

Browser support
Browser ICO PNG GIF animated GIFs JPEG APNG SVG
Google Chrome Yes 4.0 4.0 No 4.0 No No
Internet Explorer 4 No No No No No No
Mozilla Firefox Yes Yes Yes Yes Yes 3.0 No
Opera Yes Yes Yes Yes Yes Yes 9.6
Safari Yes 4.0 4.0 ? 4.0 No No


The following format is cross-browser compatible and is supported by Internet Explorer, Firefox, Chrome, and Opera.

Additionally the following is also acceptable:

  • <link rel="SHORTCUT ICON" href="/somepath/myicon.ico"/>

The following shows the supported format of link tags, using examples, for HTML and XHTML.

HTML:

XHTML:

  • <link rel="icon" type="image/vnd.microsoft.icon" href="/somepath/image.ico" />
  • <link rel="icon" type="image/png" href="/somepath/image.png" />
  • <link rel="icon" type="image/gif" href="/somepath/image.gif" />

 

Ref:Wikipedia

Friday, March 19, 2010

Windows Live Writer

Windows_Live_Writer_logo[1]Windows Live Writer, developed by Microsoft, is a desktop blog-publishing application that is part of the Windows Live range of products. It features WYSIWYG authoring, photo-publishing and map-publishing functionality, and is currently compatible with Windows Live Spaces, SharePoint blogs, Blogger, LiveJournal, TypePad, Wordpress, Telligent Community, PBlogs.gr, JournalHome, the MetaWeblog API, the Movable Type API, Blogengine and all blogs that support RSD (Really Simple Discoverability).

Windows Live Writer introduces the Provider Customization API that enables both rich customization of Windows Live Writer's behavior as well as the opportunity to add new functionality to the product. Currently Windows Live Spaces, WordPress, and TypePad have all taken advantage of this API to expose additional service-specific features within Windows Live Writer.

Windows Live Writer is currently available in 48 different languages.

Ref : Wikipedia