Advertisement
Guest User

CSS-only

a guest
Nov 9th, 2020 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.88 KB | None | 0 0
  1. figure {
  2.   max-width: 50%;
  3.   margin: 3em auto;
  4.   overflow-x: auto;
  5. }
  6.  
  7. table {
  8.   table-layout: fixed;
  9.   border-collapse: collapse;
  10.   border-style: solid none;
  11.   border-width: thin;
  12.   border-color: rgb(206,206,206);
  13.   font-size: 75%;
  14.   font-family: Verdana, Tahoma, sans-serif;
  15. }
  16.  
  17. tfoot {
  18.   border-top: thin solid rgb(206,206,206);
  19. }
  20.  
  21. thead th,
  22. tbody th, tbody td,
  23. tfoot th, tfoot td {
  24.   vertical-align: top;
  25.   text-align: left;
  26.   line-height: 1.8;
  27.   white-space: normal;
  28.   padding: 0.25em 0.5em;
  29.   font-variant-numeric: lining-nums tabular-nums;
  30. }
  31.  
  32. thead th:nth-child(2) {
  33.   min-width: 15%;
  34.   text-align: right;
  35. }
  36.  
  37. thead th:nth-child(3) {
  38.   min-width: 15%;
  39.   text-align: right;
  40. }
  41.  
  42. tbody td:nth-child(2),
  43. tbody td:nth-child(3) {
  44.   text-align: right;
  45. }
  46.  
  47. tfoot th {
  48.   text-align: right;
  49. }
  50.  
  51. tbody tr:nth-child(2n-1) {
  52.   background-color: rgb(238,238,238);
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement