Re: Hanging Indents <DL>

Ian Samson wrote:
> Sorry to repeat myself, but I am _very_ confused now.

Obviously the implementers are more confused than you, since it is they
who have screwed things up royally. You should simply be cautious in
how you use the abominations you've been given to work with.

In my experience, if you get DD to align properly in either MSIE 3.02
or NSN 4.01, it will be badly broken in a browser that truly supports
CSS1.

Try this markup:

  ...
  <STYLE TYPE=text/css>
  DL {   margin-left: 0 }
  DT {   margin-left: 0 }
  DD {   margin-left: 0 }
  </STYLE>
  ...
  <BODY>
  <DL>
  <DT>This is the term</DT>
  <DD>This is the definition</DD>
  </DL>
  ...

Here's what it should look like:

  This is the term
  This is the definition

If it doesn't, your browser's CSS1 implementation is broken.

There is no 'innate' left margin for DD, outside of what is defined in
the UA's default/built-in stylesheet. If an author provides a
left-margin value, that value should supersede the UA's default value,
not be added to it. This has been discussed in the www-style list many
times over the last year or so, and the inability of certain
implementers to comprehend or comply implies a certain level of
incompetence.

> Can someone please suggest a solution, that will work in both?

Tables. (Not nearly as elegant or controllable as CSS1 should be, of
course.)

BTW, your comments about CSS1 might draw more response from the
www-style list.

David Perrell

Received on Wednesday, 6 August 1997 13:47:38 UTC