Guest User

Untitled

a guest
Apr 25th, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment