We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

Ashung on 07/01/08


Tagged

css Firefox cssHack


Versions (?)


Who likes this?

8 people have marked this snippet as a favorite

SpinZ
jonhenshaw
chianess
inamorix
asturi
localhorst
tutrinh211
robksawyer


Firefox 3 CSS hack


Published in: CSS 


Firefox 3 CSS hack

  1. .foo, x:-moz-any-link { } /* FireFox 2 */
  2. .foo, x:-moz-any-link, x:default { } /* FireFox 3 */
  3. html>/**/body .foo, x:-moz-any-link, x:default { } /* Only FireFox 3 */

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: mozewho on July 27, 2008

I feel like blind man in strange area ... coz I am nonexpert in programing language stuff.. by the way just want to know I'll try to learn more.. he8.. thanks very much :- )

Posted By: martyfmelb on January 28, 2009

1 & 2 doesn't work in IE7, because IE7 doesn't drop the rule as it should (but IE6 does, incredibly).

So effectively, hacks 1 & 2 are now "Firefox-N-and-IE7-only" hacks. Might apply to IE8 too if MS doesn't fix / know about the bug above.

I tested 3, without the x:default selector, and it works as expected in at least IE6, IE7, FF3, and is most likely to work in FF2.

Posted By: martyfmelb on January 29, 2009

Addendum to my last comment: 1 & 2 doesn't work in IE7 only if you are using multiple_ie's IE6 (possibly others).

Posted By: dream on January 11, 2010

Sunglasses are made from a wide variety both for man's and women's. Here UGG Ultra Tall Boots will introduce you A wealth of information about mens sunglasses and womens sunglasses. With the original action Adidas Sport Sunglasses brand, is dedicated to progressive design, maximum functionality and unparalleled quality.Among the most famous band sunglasses, just like Armani Sunglasses, Fendi Sunglasses D&G Sunglasses and Polarized Sunglasses are fond of many sunglass fans. All these women's UGG sun glasses come with 100% UV protection. UGG Boots features, including information on performance, prescription, Versace, kids' and Oakley Sunglasses. It's never out of fashion to be with Dior Sunglasses and Chanel Sungalsses. Classic Cardy UGG Boots is this seasons hottest fashion trend! UGG Australia unveils the Christian Louboutin Shoes UGG Boot ever - Buy the new 2009 UGG Bailey Button Boots. As we all know, the uk ghd straighteners cheap have design to make up your dreams to have easy manageable, straight and smooth hair in few minutes just with cheap ghd straighteners electronic product

Posted By: Ivy on January 26, 2010

How to Create Flat Iron Hairstyles for your hair.The CHI Flat Iron Black/Pink...is the best!The best-selling CHI Pink Dazzle Flat Iron legendary flat iron couldn't get much better--well, until now!

Posted By: handbagtime on February 2, 2010

like this post just like replica handbags

You need to login to post a comment.