XML technologies / CSS / Advanced websites with CSS / Text effects and cascading / Styling lists with CSS
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
In HTML, lists begin with <ul> for an unnumbered list, or <ol> for a numbered list. (Note: Other list types exist for menus, definitions, glossaries and directories, but they do not differ visually from these two types, so I have omitted them.) Both are enclosing tags and require the closing tags </ul> or </ol> at the end of their element. Individual list items begin with a <li> and close with </li>.
Lists are block elements and, along with headings and paragraphs, are among the most frequently used HTML text elements. Three specific CSS properties apply exclusively to lists:
list-style-typelist-style-positionlist-style-image
This list must also include the shorthand property list-style that sets several list properties in a single declaration.
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg
back to top