Prev | Current Page 76 | Next

Charles Wyke-Smith

"Stylin' with CSS: A Designer's Guide 2nd Edition"

A
common work-around technique has been to wrap lots of spans around an
element, each containing rounded-corner background graphics, to achieve
this effect. We will look at more simple ways to create rounded corners without
resorting to graphics later in the book.
Don't make critical features of your
site dependent on pseudo-classes
and pseudo-elements because they
are not supported by IE6 and only
partially supported by IE7 (and
these two browsers are currently
used by about 70 percent of your
visitors). Instead, use these selectors
to enhance the user experience in
browsers that support them??”for
example, use the :focus selector
to add a strong border around the
form ?¬? eld in which a user is currently
typing. Users that don??™t get this
enhancement still have an acceptable
experience.
There are four other pseudo-classes.
The ?¬? rst is :lang, which is applied
to elements with a speci?¬? c language
code, and the other three are :left,
:right, and :?¬? rst, which apply to
paged media (print) rather than content
displayed in browsers. They are
little used and unevenly or not at all
supported by browsers, so I am not
covering them here.
STYLIN??™ WITH CSS - CHAPTER 2 54
Inheritance
Just like the money you hope you??™ll get from rich Uncle Dick, inheritance
in CSS involves passing something down from ancestors to
descendants: the values of CSS properties.


Pages:
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88