hanging indents revisited

Luck, Deanne LuckDL at apsu.edu
Tue Jul 3 16:26:33 EDT 2001


I just wanted to thank everyone for your advice dealing with hanging indents
on a web page.  I finally got around to formatting our page earlier this
summer using Thomas Dowling's advice (below).  The finished product is at
http://library.apsu.edu/guides/1_3_14_1.htm.

DeAnne Luck
Electronic Resources Librarian
Austin Peay State University
luckdl at apsu.edu


-----Original Message-----
From: Thomas Dowling [mailto:tdowling at ohiolink.edu] 
Sent: Friday, March 16, 2001 11:16 AM
To: Multiple recipients of list
Subject: [WEB4LIB] Re: hanging indents?


> Is there any way to create a hanging indent on a web page?  We're
creating a
> page on citing in MLA style, and while I'm fairly sure this can't be
done, I
> thought I'd ask the experts.
>

I seem to have gotten two or three days' worth of Web4Lib dropped into my
account in one fell swoop.  Interesting experience: I got most of the
answers to this question before seeing the question.

With respect, the only partially correct response was Christine
Peterson's: "p {text-indent: -30px; margin-left: 30px; }".  This is the
only solution I saw that actually makes a paragraph with a hanging indent;
that is:

  1.  An actual paragraph, marked up with <p>.
  2.  A left margin on the first line that lines up with the parent block.
  3.  A left margin for all subsequent lines that is indented.

Full marks would be given for using a relative size for the indent: "p
{text-indent: -1.5.em; margin-left: 1.5em; }" (If MLA specifies the size
of the indent, use that.)

[I see Peter Gorman just got this one posted.]

My hackles are up a little today, but I have to say I'm appalled at the
amount of markup hackery people still recommend.  1x1 transparent GIFs?
Even David Siegel bailed on those 4 years ago.  <DL> fakery?  For one
thing, a list is a list and a paragraph is a paragraph.  For another, any
attempt to guess how long a "line" is will be doomed to failure, since the
concept of a line is unknown in HTML.


Thomas Dowling
OhioLINK - Ohio Library and Information Network
tdowling at ohiolink.edu


More information about the Web4lib mailing list