spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

I Shot the Serif

Example: A Simple Bibliography


Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

Our next example attempts to recreate the first few entries in a simple scientific bibliography (this one is borrowed from my University Mathematics textbook). The text-decoration property is used to underline author names, the font-style property is used to make book titles italic, and the text-indent property is used in a very interesting fashion: by giving a negative value, we create a "hanging indent" for our entries. Also, the familiar text-align property is used to justify our entries.

.bibliography P {
  text-align: justify;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 2cm;
  margin-right: 1cm;
  text-indent: -1cm;
}
.bibliography P SPAN.title {
  font-style: italic;
}
<H1>A Bibliography</H1>

<P>From <I>Mathematical Methods in the 
Physical Sciences</I>, 2nd ed., by Mary L. Boas.</P>

<DIV CLASS=bibliography>

<P>Abramowitz, Milton and Irene A. Stegun, editors, 
<SPAN CLASS="title">Handbook of Mathematical 
Functions With Formulas, Graphs, and Mathematical Tables</SPAN>, 
National Bureau of Standards, Applied Mathematics Series, 
55, U.S. Government Printing Office, Washingtion, D.C., 1964.</P>

<P>Anton, Howard, <SPAN CLASS="title">Elementary Linear 
Algebra</SPAN>, Wiley, New York, 2nd ed., 1977.</P>

<P>Apostol, Tom M., <SPAN CLASS="title">Calculus</SPAN>, 
Vol. I, Blaisdell, Waltham, Mass., 2nd ed., 1967.</P>

</DIV>

Front Page123456789

http://www.internet.com

Produced by Stephanos Piperoglou

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


All Rights Reserved. Legal Notices.

URL: http://www.webreference.com/html/tutorial8/
Created: Oct 20, 1998
Revised: Nov 3, 1998