Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The reason for the validator error messages is that a <code>ul</code> element can have only <code>li</code> elements as children, and a <code>span</code> element must not contain a <code>p</code> element. (Any decent tutorial on HTML describes such things.)</p> <p>On the other hand, your list titles are logically headings rather than paragraphs. It depends on the context what the heading level is, but assuming this construct appears at the top level of hierarchy, <code>h2</code> is right. Something like the following (ignoring here the inner structure of the <code>li</code> elements, which is not relevant here):</p> <pre><code>&lt;div class=list&gt; &lt;h2&gt;Title 1&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;Item one &lt;li&gt;Item two &lt;li&gt;Item three &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>The extra <code>div</code> element lets you style a list and its heading as a unit. You seem to want something like the result achievable with a style sheet like this:</p> <pre><code>.list { width: 14%; float: left; } .list h2 { font-size: 13px; font-weight: normal } .list li { font-size: 10pt; line-height: 14px } .list ul, .list ul li { margin: 0; padding: 0; } .list ul, .list h2 { margin-left: 1.3em; } </code></pre> <p>Put that in an external style sheet that you link to, or in a <code>style</code> element. Copying the same settings over and over again for different elements makes the code hard to read and hard to maintain.</p> <p>The font sizes above are as per your code. It would be much better not to set font size for list items at all and set the font size of the headings to something suitably larger than copy text size, e.g. <code>font-size: 115%</code>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload