HTML and CSS Reference
In-Depth Information
IE only supports rems since version 9, so support for older versions needs
some attention. The best way to handle this is to provide fallbacks in pixel sizes
so older IE versions at least get the same sizing, albeit with a lesser degree of flex-
ibility. For example:
code {
font-size: 11px;
font-size: 1.1rem;
TIP: IE6 and IE7 don't resize text set in pixels, so for accessibility's
sake, if you are planning on using rems for text sizing, you might
want to consider bumping up the text size just for these browsers using
an IE conditional stylesheet (see Chapter 2.)
CSS3 features an entire toolbox of new selectors that allow you to select more spe-
cific elements for styling while nullifying the need for a lot of those arbitrary IDs
and classes you tend to often include to select “the last item in the list,” or “the first
paragraph in the post that always contains the introduction,” or even “the twelfth
div across on the 17th shelf because I want it to be the prettiest.”
I won't discuss every selector exhaustively. If you want a detailed reference
for each one, consult a resource such as
Advanced_CSS_selectors. Instead, I'll provide a quick reference in Ta b l e 1 . 3 for all
the selectors, and then showcase some of the most powerful and interesting ones
(as well as some seldom-explored selectors first included in CSS2) to give you a
good flavor of what selectors are now capable of.
Search WWH ::

Custom Search