Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat tools exist to debug css?
    primarykey
    data
    text
    <p>I am tearing my hair out over this one. What tools do people use to debug formatting issues with css? I have some relatively simple formatting for navigation using css which looks like this:</p> <pre><code>/* sub navigation */ .sidenav { float: right; width: 218px; } .sidenav h1 { background: #BCB39F url(img/sidenavh1.gif) repeat-x; border-bottom: 1px solid #999; border-top: 1px solid #CCC; color: #4A4A44; font-size: 1.2em; height: 22px; margin: 0; padding-left: 12px; } .sidenav h1 a { color: #554; text-decoration: none; display: block; } .sidenav h1 a:hover { background: #D6CCB9; color: #654; } </code></pre> <p>I then have this code in my page:</p> <pre><code>&lt;div class="sidenav"&gt; &lt;a href="ceremony"&gt;Wedding Ceremony&lt;/a&gt; &lt;a href="reception"&gt;Wedding Reception&lt;/a&gt; &lt;div class="clearer"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>and it doesn't pick up the style. It was working fine, so one of my changes elsewhere must have knocked something out of place (I suspect a somewhere, but I am really struggling to find what it was. The rest of my page formats fine...)</p> <p>Any suggestions?</p> <hr> <p>Answer found thanks to firebug.</p> <p>The formatting was not applied since the formating for links only applied to links in the <code>&lt;h1&gt;</code> element - ie the html should have been:</p> <pre><code>&lt;div class="sidenav"&gt; &lt;h1&gt;&lt;a href="ceremony"&gt;Wedding Ceremony&lt;/a&gt;&lt;/h1&gt; &lt;h1&gt;&lt;a href=reception"&gt;Wedding Reception&lt;/a&gt;&lt;/h1&gt; &lt;div class="clearer"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre>
    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