XML technologies / CSS / Advanced websites with CSS / Text effects and cascading

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

In Using fonts with CSS we covered the use of fonts in CSS in depth. This chapter continues directly from there and examines other important properties for effectively styling text elements on our pages. By the end, we will know all about:

Links are treated differently from other text by browsers and can therefore be formatted in different ways. Lists also have their own special presentation options, so we will take a thorough look at the CSS techniques specifically intended for hyperlinks and lists.

Another important section at the end of the chapter is devoted to cascading. So far, we have largely ignored the “C” in CSS. This chapter shows it in action with text elements and adds an important topic to our CSS knowledge.

We will begin, however, with the simple element span, which we have already used when defining font sizes. It is particularly useful for marking up individual segments inside larger blocks of text.

  

  

 

 

 

back to top