The Wayback Machine - https://web.archive.org/web/20090109170105/http://www.webreference.com/html/tutorial7/8.html


spacer

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

I Shot the Serif

Example: A Simple Bibliography


Developer News
Cisco Lawsuit: A Test for the GPL?
Shifts for Enterprise Linux, Green Networks in '09
Gifts for All in Linux 2.6.28

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.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Copyright 2008 Jupitermedia Corporation All Rights Reserved.

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

webref The latest from WebReference.com Browse >
Overview of Popular JavaScript Frameworks - ASP.NET AJAX · An Introduction to 3D · Email Marketing Terms to Know
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Configuring Anonymous Dialog Security in SQL Server 2005 Express Service Broker Conversation · OpenVPN: Revoking Access and Expanding Management Options · Connecticut Town Lays Groundwork for Merged School, Municipal VoIP Network


All Rights Reserved. Legal Notices.

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.