Prev | Current Page 103 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

However,
Internet Explorer versions 5.5 and 6 ignore the universal selector at the beginning
of this selector.
The Ultimate CSS Reference 62
When the universal selector is immediately adjacent to an element type selector,
Internet Explorer versions 6 and 7 will interpret the combination as a descendant
selector (p. 74) instead of failing as they should.
In Internet Explorer 6 and 7, this selector will also select some inappropriate SGML
elements such as the doctype declaration and comments.
In Opera 9.2, this selector will also match any recognized processing instructions.
Element Type Selector
E {
declaration block
}
SPEC
CSS1
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE7+
FULL FULL FULL FULL
While the universal selector matches
any element, an element type selector
matches elements with the
corresponding element type name. Type
selectors are case insensitive in HTML
(including XHTML served as text/html),
but are case sensitive in XML (including
XHTML served as XML).
Compatibility
Example
Consider this example selector:
ul {
?‹® declarations
}
A type selector like the above ul matches
all the elements within an HTML or XML
document that are marked up as follows:
    ??¦

Opera Safari Firefox Internet Explorer
9.


Pages:
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115