Venciity

[CSS] overview ДОМАШНО - 2 задача ( CSS FILE )

Feb 2nd, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.15 KB | None | 0 0
  1. @charset "utf-8";
  2. /* CSS Document */
  3. body
  4. {
  5.     font-family:Helvetica, Arial, sans-serif;
  6. }
  7.  
  8. table
  9. {
  10.     border-collapse:collapse;
  11.     border-style:none;
  12.     border-color:#CCC;
  13.     width:825px;
  14.     height:240px;
  15. }
  16.  
  17. .firstCol
  18. {
  19.     width:30%;
  20. }
  21. .secondCol
  22. {
  23.     width:25%;    
  24. }
  25.  
  26. .fourthCol
  27. {
  28.     width:15%;    
  29. }
  30.  
  31. table th
  32. {
  33.     border-right:2px inset #FFF;
  34.     border-top:none;
  35.     border-bottom:none;
  36.     line-height:38px;
  37.     padding:5px;
  38.     background-color:#55b806;
  39.     text-align:left;
  40.     font-weight: normal;
  41.     color:#FFF;
  42.     padding: 5px;
  43.     line-height:30px;
  44. }
  45. th:nth-child(n)
  46. {
  47.     border-bottom:1px solid #1d381b;
  48. }
  49.  
  50.  
  51. table tr:nth-child(even)
  52. {
  53.     background-color:#ececd8;
  54. }
  55.  
  56.  
  57. td
  58. {
  59.     border-right:2px inset #FFF;
  60.    
  61.     border-top:none;
  62.     border-bottom:none;
  63.     line-height:38px;
  64.     padding:5px;
  65. }
  66.  
  67. table td:nth-child(4n)
  68. {
  69.     border-right:none;
  70. }
  71. table td:nth-child(4n+1)
  72. {
  73.     border-left:none;
  74. }
  75.  
  76. table th:nth-child(4n)
  77. {
  78.     border-right:none;
  79. }
  80. table th:nth-child(4n+1)
  81. {
  82.     border-left:none;
  83. }
  84.  
  85.  
  86. img
  87. {
  88.     padding:10px;
  89.     vertical-align:middle;
  90. }
Advertisement
Add Comment
Please, Sign In to add comment