1. About.com
  2. Computing & Technology
  3. Web Design / HTML

Discuss in my forum

Jennifer Kyrnin

Finally! CSS includes text

By , About.com Guide   November 8, 2005

Follow me on:

One of the most common questions I get about CSS is how people can use CSS to include a specific block of text on every page on their site. Well, now it is possible, at least in a way. CSS 2 allows you to include content in your CSS file that will be displayed in the document as you specify. It can be used for things like numbering lists or more usefully, adding the copyright date without having to edit every page on the site. (For the copyright date, just have a DIV with the id "copyright" and include the copyright date in a :after or :before property.) Add CSS2 Generated Content to del.icio.us
Comments
No comments yet.  Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2012 About.com. All rights reserved. 

A part of The New York Times Company.