Note that there are some explanatory texts on larger screens.

plurals
  1. POIn Firebug, how to tell what is overriding a style?
    primarykey
    data
    text
    <p>I have this css:</p> <pre><code>fieldset li { padding-bottom: 0em; } </code></pre> <p>However, it wasn't behaving properly, and using firebug, I see that style has a line drawn through it, indicating it is being overridden. Is there a way in firebug to tell <strong>what</strong> is overriding a style?</p> <p>In the style tab, this is <strong>all</strong> I see: </p> <pre><code>fieldset li { clear:left; float:left; padding-bottom:1em; width:100%; } Default.CSS (line 42) fieldset li { padding-bottom:0; } Default.CSS (line 27) Inherited fromol fieldset ol { list-style-image:none; list-style-position:outside; list-style-type:none; } Default.CSS (line 23) Inherited fromtable#ctl00_ContentPlaceHolder1_ScorecardEdit1_frmEdit element.style { border-collapse:collapse; } </code></pre> <p>When I go to the computed tab, I see it has padding-bottom of 16px. How can I find out where this is coming from?</p> <p>All the answers so far seem to imply I <strong>should</strong> see <strong>all</strong> the applied styles in the style tab (and I swear this is how it worked last time I used firebug), but this time I am <strong>not</strong> seeing all styles!</p> <p>(I am running Firebug 1.5.2)</p> <h2>Solution</h2> <p>I'm an idiot. It was caused by this (which was staring me right in the face):</p> <pre><code>fieldset li { clear:left; float:left; padding-bottom:1em; width:100%; } </code></pre> <p>It was the <strong>em</strong> that threw me off. That's what you get when you copy / paste CSS from the web without understanding it.</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.
 

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