Dummy Selector

Test of Filter

This text will be green if the rule has been applied.

Code Syntax

null#testElement {
   color: #00cc00;

Browser Support / Behaviour

Applied By

Not Applied By


Special Notes

Either an id or a class must be applied to the element in order for this hack to work. Use a class if you want to apply the rule on several elements; use an id if it should be applied to a single element.

Because the null element doesn't exist in XHTML, standards-compliant browsers will not apply this rule (so the text in the example block should be red in compliant browsers). Browsers that do apply this rule (IE4 Win, Opera 3.5) will apply it to all instances of the class or id.

More information