Latest Lists

How do I use CSS to change the color of an emphasized (italicized) part of an unordered list?

Okay, so I have an unordered list (for the sake of this, just imagine my entire document is so far purely XHTML) and I'm using a separate CSS document to style it. There is an unordered list and the list should be blue, but one word of one of the lists is emphasized (in italics) using the xhtml: < em >. So how do I use CSS to make that italicized word (and just that word) green while the rest remains blue?

Public Comments

  1. ul { color: blue } ul > li em { color: green } -chie
Powered by Yahoo! Answers