Re: Rendering of Indents (<DIR>)

dt {display: block ; font-weight: bold }
dd {display: inline }

(I don't  think that the block and inline display properties work in Amaya
but they do in a number of browsers)


On Tue, 3 Jul 2001, Scott Davis wrote:


  while you're giving a tutorial on style sheets :-) there's one construct
  I haven't been able to achive, despite searching all references I could

  How can I express a style sheet to get a <DL> to be rendered with the
  <DD> content starting on the same line as the <DT> ? This is how
  dictionaries (for example) are usually laid out, but I have been unable
  to achieve it with CSS.

  Term 1: Definition 1
  Term 2: Definition 2

  As I understand it, this is the sort of thing that <DIR> and <MENU> were
  supposed to assist.

  Does anyone have a useful CSS reference which is sorted or can be
  searched based on the required effect, rather than the names of the

    Scott Davis

  Dave J Woolley wrote:

  >>From:	Geoff Benn []
  >>Great work :-) I understand this is the email address for Amaya issues? I
  >>have a couple of issues with indenting:
  >>1. Amaya does not seem to render indents (HTML <DIR>) correctly, ie. it
  >>doesn't actually indent.
  >	[DJW:]  There is *NO* indent element in HTML.  As far as I know DIR
  >	deprecated (because browser developers failed to distinguish from
  >	list type structures).
  >	If you want indenting you *must* use style sheets.
  >	(Incidentally, the element normally abused for
  >	indenting is BLOCKQUOTE.)
  >>2. To improve the look/feel I suggest Indent increase & decrease buttons
  >>as per Netscape Composer & MS Outlook Express,
  >	[DJW:]
  >	These are mis-features, as they make people think that HTML
  >	is a WYSIWYG page description language.  If you really want
  >	such a language, I'd reccommend PDF.
  >	Indenting in HTML always has to be seen as a two stage process:
  >	- provide HTML to indicate the structural nature of the element;
  >	- provide style sheets to indicate how you prefer such elements
  >	  to appear (don't forget to provide them for all media types, not
  >	  just high resolution GUIs with mice).
  >>  [DJW:]

Charles McCathieNevile  phone: +61 409 134 136
W3C Web Accessibility Initiative    fax: +1 617 258 5999
Location: 21 Mitchell street FOOTSCRAY Vic 3011, Australia
(or W3C INRIA, Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France)

Received on Monday, 2 July 2001 20:24:00 UTC