Anita is My True Love


4 June, 2007

CSS Hack: IE5.0/Windows Band Pass Filter

Filed under: CSS

This paragraph should have green text in all browsers that support even a little CSS. However this paragraph will have a orange background in IE5.0/Windows from the @imported style sheet “ie50winbandpassbefore.css” at the start of the inline style sheet, and a thick maroon border from the @imported style sheet “ie50winbandpassafter.css” at the end of the inline style sheet.
Definition (more…)

CSS Hack: Mid Pass Filter

Filed under: CSS

This paragraph should have green text in all browsers that support even a little CSS. However this paragraph will have a red background in IE5.x/Windows from the @imported style sheet “midpassbefore.css” at the start of the inline style sheet, and a thick yellow border from the @imported style sheet “midpassafter.css” at the end of the inline style sheet.
Definition

mid pass filter

AKA band pass filter. A filter which transmits energy in a specified wavelength band but rejects energy above and below.
(more…)

CSS Hack:

Filed under: CSS

The Underscore Hack

Let’s start with three simple facts — as Petr Pisar found out.

  1. The underscore (“_”) is allowed in CSS identifiers by the CSS2.1 Specification
  2. Browsers have to ignore unknown CSS properties
  3. MSIE 5+ for Windows ignores the “_” at the beginning of any CSS property name

Therefore, a CSS definition, e. g. _color:red is:

  1. Correct, for CSS 2.1 specification allows it (even if software validators, knowing only older version CSS 2.0, say it’s a bug: they are wrong, it’s correct).
  2. Ignored in any browser but WinIE
  3. Treated as color:red in WinIE
    (more…)






















Get free blog up and running in minutes with Blogsome
Theme designed by Minz Meyer