Archive for the ‘CSS’ Category
By Bryce Mullican on January 11th, 2011
/*
HTML TAG = 1 point
CLASS = 10 points
ID = 100 points
Inline = Nothing overrides inline styles
*/
html body div#wrap p + div.item #test{background:black;} /* 215 */
body #wrap div + p{background:blue;} /* 103 */
body #wrap div p{background:green;} /* 103 */
body #wrap p{background:yellow;} /* 102 */
#test{background:red;} /* 100 */
#wrap .item p{background:orange;} /* 111 */
.item p#test{background:red;} /* 111 */
.item p{background:orange;} /* 11 */
p{background:green;}/* 1 */
Recent Comments