Advertisement
Guest User

Untitled

a guest
May 29th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.38 KB | None | 0 0
  1. <table class="box">
  2.     <tr>
  3.         <th>Header</th>
  4.     </tr>
  5. </table>
  6.  
  7. .box th {
  8.     // find any element with .box
  9.     //   then find th
  10. }
  11.  
  12. th.box {
  13.     // find any th with .box
  14. }
  15.  
  16. table.box tr th {
  17.     // find any tble with .box
  18.     //   then find tr
  19.     //     then find th
  20. }
  21.  
  22. table#foo tr.baz th.bonk {
  23.     // find table with id foo
  24.     //   then find tr with .baz
  25.     //     then find th with .bonk
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement