The Wayback Machine - https://web.archive.org/web/20090212225654/http://www.webreference.com:80/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
Open Source ECM Growing Up
Android's Second Act, G2 Rumors Heat Up
Eclipse Rolls Out PHP Development Tools 2.0

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 >
Introducing the ASP.NET Ajax Frameworks · Windows Forms: Applications · Building a Client-Side Ajax Cache
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Verizon's Versatile VoIP Hub · Show Us the Money: What the Stimulus Bill Can Do for Wi-Fi · The Acer Aspire One Enters the Next Generation


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.