The Wayback Machine - https://web.archive.org/web/20090531171541/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
Rails 3 Gets Supersized With Merb
SpringSource, Hyperic Merge for App Management
Get Ready for Windows 7 'Release Candidate'

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
Copyright 2009 WebMediaBrands Inc. All Rights Reserved.

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

webref The latest from WebReference.com Browse >
Getting Started with URL Rewriting with Apache · Kicking the Tires on Your Next CMS · User Personalization with PHP: The Final Scripts
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Write SQL Code for MySQL Using HeidiSQL 4 · Government Mobility and Why It's Not an Oxymoron · Site Building with Photoshop and Dreamweaver


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.