On Monday, 16 September 2013 at 17:16:30 UTC, Andrei Alexandrescu wrote:
The problem now is I need to worry about two things: class _and_ element. With div/span I only need to worry about paragraph/inline (a simpler Boolean decision) and class.

You don't need to set the class to every <dd> tag. Since all <dd> tags are direct children of a <dl> tag, you can set the class on the <dl> tag, then use a CSS child selector to specify styling. E.g.:

HTML:
  <dl class="decl_ddoc">
    <dt>...</dt>
    <dd>...</dd>
    ...

CSS:
  dl.decl_ddoc > dd {
    /* styles that apply only to <dd>
       inside a <dl class="decl_ddoc">
    */
  }

Reply via email to