Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS div block causing list misalignment on WebKit browsers
    primarykey
    data
    text
    <p>I am using PHP to generate lists and when a list item needs more work I put a red bold exclamation mark to the left of the text. However on WebKit browsers the items with the exclamation mark are indented slightly, something like this:</p> <ul> <li>item</li> <li>item <ul> <li>!item</li> </ul></li> </ul> <p>This is a sample of HTML that produces the same problem:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="ISO-8859-1" /&gt; &lt;style&gt; #needswork { color:#F00; font-weight:bold; float:left; } &lt;/style&gt; &lt;title&gt;Dodgy lists&lt;/title&gt; &lt;/head&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="http://www.linuxtech.ie"&gt;&lt;em&gt;Atlanta&lt;/em&gt; - 24 May&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;div id="needswork"&gt;&lt;/div&gt;&lt;a title="Still needs work" href="http://www.linuxtech.ie"&gt;&lt;em&gt;Ashgabat&lt;/em&gt; - 2 Feb&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;div id="needswork"&gt;!&lt;/div&gt;&lt;a title="Still needs work" href="http://www.linuxtech.ie"&gt;&lt;em&gt;Paris&lt;/em&gt; - 3 June&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/html&gt; </code></pre> <p>Note that the second item on the list doesn't have any text in the <code>div</code> block and it looks fine. I copied it into <a href="http://jsfiddle.net/swim2birds/eWNxy/1/" rel="nofollow">JS Fiddle</a>, but the effect is even stranger.</p> <p>I tried using CSS reset from <a href="http://meyerweb.com" rel="nofollow">http://meyerweb.com</a>, but it didn't make any difference.</p> <p>Thanks.</p>
    singulars
    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.
 

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