CSS

CSS selector priority

selector weight
inline css 1 0 0 0
id 0 1 0 0
class, attribute, pseudo-class 0 0 1 0
label, pseudo-element 0 0 0 1
* 0 0 0 0
html>body table tr[id="totals"] td ul>li {color:marron;}/*0,0,1,7*/
li#answer {color:navy;}/*0,1,0,1(winner)*/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s