Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.49 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. In which order do CSS stylesheets override?
  2. <head>
  3. <title>Title</title>
  4. <link href="styles.css" rel="stylesheet" type="text/css"/>
  5. <link href="master.css" rel="stylesheet" type="text/css"/>
  6.        
  7. body {margin:10px:}
  8.        
  9. html, body:not(input="button")
  10. {
  11. margin:0px;
  12. padding:0px;
  13. border:0px;
  14. }
  15.        
  16. div#foo {
  17.   color: blue; /* This one is applied to <div id="foo"></div> */
  18. }
  19.  
  20. div {
  21.   color: red;
  22. }
  23.        
  24. div {
  25.   color: red;
  26. }
  27.  
  28. div {
  29.   color: blue; /* This one is applied to <div id="foo"></div> */
  30. }