O'Reilly logo

Web Design in a Nutshell by Jennifer Niederst

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix E. CSS Compatibility

Browser compatibility—or lack thereof—is the biggest obstacle to adoption of cascading style sheets. This appendix provides a comprehensive guide to how the browsers have implemented support for CSS. It lists every aspect of the CSS spec and identifies how well it is supported by Netscape 4, Internet Explorer 3 and Internet Explorer 4 for both Mac and Windows 95. Check this master list to see if the CSS elements you want to use are supported by all the browsers—and whether their support is complete, partial or buggy.

This appendix uses the following key:

Y

Yes

N

No

P

Partial

B

Buggy

Q

Quirky

The data in this appendix was collected by Eric Meyer, and updated versions of this information will appear on http://style.webreview.com when new browser versions are released.

Table E-1. Basic Concepts

Spec

Property or Value

Windows95

 

Macintosh

 

Reference

 

Nav4

IE3

IE4

Nav4

IE3

IE4

1.1

Containment in HTML

LINK

<STYLE type="text/css">...</STYLE>

@import

<x STYLE="dec;">

P

Y

Y

N

Y

P

Y

Y

N

Y

Y

Y

Y

P

Y

P

Y

Y

N

B

B

B

Y

N

Y

P

P

Y

B

Y

1.2

Grouping

x, y, z {dec;}

Y

Y

N

N

Y

Y

Y

Y

Y

Y

Y

Y

1.3

Inheritance

(inherited values)

P

P

P

P

Y

Y

Y

Y

B

B

P

P

1.4

Class as selector

.class

Y

Y

B

B

B

B

Y

Y

B

B

Y

Y

1.5

ID as selector

#ID

B

B

B

B

B

B

B

B

B

B

B

B

1.6

Contextual selectors

x y z {dec;}

Y

Y

Y

Y

Y

Y

Y

Y

P

P

Y

Y

1.7

Comments

/* comment */

Y

Y

B

B

Y

Y

Y

Y

Y

Y

Y

Y

Table E-2. Pseudo-Classes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required