Prev | Current Page 278 | Next

Charles Wyke-Smith

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

lime ol, .lime dl, .lime cite {
color:#507EA1;
}
.lime blockquote {
color:#738040;
}
.lime cite {
color:#555;
}
.lime table, .lime form {
color: #507EA1;
}
.lime a {
color:#507EA1;
}
.lime a:hover {
color:#738040;
}
STYLIN??™ WITH CSS - CHAPTER 7 248
.lime #nav a:hover, .lime #promo a:hover {
color:#507EA1;
}
.lime #nav a:hover, .lime #promo a:hover {
color:#666;
}
By adding the lime class to the body, these styles are applied to elements
within a div with the speci?¬? ed ID. Let??™s next see what the
markup, with the new content, looks like with these styles.
The Page Markup
Here??™s the XHTML markup for the home page:






invokes the .lime class of styles
from text_n_colors.css
end header
end nav_inner div
end nav div
BUILDING WEB PAGES 249