table_html_structure_with_dl.txt

text/plain

Filename: table_html_structure_with_dl.txt
Type: text/plain
Part: 0
Message: Re: Poll: are people okay with function/operator table redesign?
# HTML

      <table class="table" summary="Date/Time Functions" border="1">
        <thead>
          <tr>
            <th align="" valign="middle">
              Function
              <dl>
                <dd>Description</dd> 
                <dd>Example</dd>
              </dl>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>
              <code class="function">age</code>(<code class="type">timestamp</code>, <code class="type">timestamp</code>) → <code class="returnvalue">interval</code>
              <dl>
                <dd>Subtract arguments, producing a <span class="quote">“<span class="quote">symbolic</span>”</span> result that uses years and months, rather than just days
                </dd>
                <dd>
                <span>
                  <code class="literal">age(timestamp '2001-04-10', timestamp '1957-06-13')</code> → <code class="literal">43 years 9 mons 27 days</code>
                </span>
                </dd>
              </dl>
            </td>
          </tr>
        </tbody>
      </table>

# CSS

#docContent table.table code.literal {
    font-style: italic;
}

code.returnvalue {
    font-weight: bold;
}

code.function {
    font-weight: bold;
}

.replaceable > code {
    font-weight: normal !important;
}

#docContent table.table dl {
    margin-left: 30px;
    margin-top: 5px;
}

#docContent table.table dl > dd {
    margin-bottom: 0;
}