Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. body {
  2. /* background-color: red; */
  3. font-family: 'Optima', sans-serif;
  4. margin: 0;
  5. }
  6.  
  7. main {
  8. max-width: 800px;
  9. padding: 1em;
  10. margin: 0 auto;
  11. /* margin-left: 250px; */
  12. }
  13.  
  14. header {
  15. text-align: center;
  16. position: relative;
  17. }
  18.  
  19. header img {
  20. width: 100px;
  21. position: absolute;
  22. left: 60px;
  23. bottom: 0;
  24. }
  25.  
  26. h1 {
  27. font-family: sans-serif;
  28. font-size: 2.5em;
  29. }
  30.  
  31. h2, h3, h4, h5, h6 {
  32. padding-top: 1em;
  33. font-family: serif;
  34. text-decoration: underline;
  35. }
  36.  
  37. nav {
  38. text-align: center;
  39. /* position: fixed; */
  40. /* left: 10px; */
  41. /* top: 20em; */
  42. /* width: 20%; */
  43. }
  44.  
  45. nav ul {
  46. padding: 1em;
  47. background-color: black;
  48. list-style-type: none;
  49. }
  50.  
  51. nav li {
  52. display: inline-block;
  53. }
  54.  
  55. nav a {
  56. color: white;
  57. display: block;
  58. text-decoration: none;
  59. padding: .5em;
  60. }
  61.  
  62. nav a:hover {
  63. background: blue;
  64. }
  65.  
  66. table {
  67. width: 100%;
  68. border-collapse: collapse;
  69. }
  70.  
  71. th {
  72. background: black;
  73. color: white;
  74. }
  75.  
  76. th, td {
  77. padding: .5em;
  78. }
  79.  
  80. table, th, td {
  81. border: solid 1px black;
  82. }
  83.  
  84. tr:nth-child(even) {
  85. background: #CCC;
  86. }
  87.  
  88. a {
  89. color: red;
  90. }
  91.  
  92. a:hover {
  93. background: yellow;
  94. }
  95.  
  96. footer {
  97. background: grey;
  98. color: white;
  99. font-size: .5em;
  100. padding: 1em;
  101. }
  102.  
  103. footer h2 {
  104. padding: 0;
  105. margin: 0;
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement