ionfish
ionfish

Reputation: 165

Why is an overwritten css rule still affecting my markup?

I have a simple ordered list and I want to display the list-style-type as decimal. The problem is I have a css reset file setting all lists to none.

I am setting my ordered list as follows.

ol#note{ 
   list-style-type:decimal !important;
}

I see in firebug that the css resets declaration has a line going through it.. which i assume means its being overwritten. However I am not seeing any of those numbers. Once I disable that declaration in the css reset file my numbers re-appear. Can anyone explain whats going on?

Upvotes: 1

Views: 131

Answers (1)

y34h
y34h

Reputation: 1659

maybe with this:

ol#note li{
   list-style-type:decimal !important;
}

Upvotes: 4

Related Questions