Example: A Simple Bibliography - I Shot the Serif - HTML with Style | WebReference

Example: A Simple Bibliography - I Shot the Serif - HTML with Style

Front Page123456789

I Shot the Serif

Example: A Simple Bibliography


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

All Rights Reserved. Legal Notices.

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