Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

EricBrian

macrumors 6502a
Original poster
Jul 30, 2005
657
8
In the attached image, you can see the css.

On line 1546, the background-color is overridden by background-color on line 985. Can somebody explain why this is?

css-question.png

Shouldn't the background color specified on line 1546 win because it comes later in the css?

Thanks.
 
Hmmm.... I guess I forgot to consider specificity calculations. Ok, got it now. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.