Advertisement
Guest User

CSS

a guest
Jan 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. body
  2. {
  3. background-image:url('tlo4.jpg');
  4. background-attachment:fixed;
  5. background-repeat:no-repeat;
  6. background-position:center top;
  7. background-size:cover;
  8. width: 100%;
  9. height:100%;
  10. margin: 0;
  11. padding: 0;
  12. font-family:"Century Gothic";
  13. font-size:22px;
  14. color: white;
  15.  
  16. }
  17.  
  18. header
  19. {
  20. width: 100%;
  21. }
  22.  
  23. .logo
  24. {
  25. width:400px;
  26. height: 250px;
  27. margin-left: auto;
  28. margin-right: auto;
  29. }
  30.  
  31. .nav
  32. {
  33. border-top: 5px solid #2bdb20;
  34. padding-top: 5px;
  35. width: 100%;
  36. height: 50px;
  37. margin-left: auto;
  38. margin-right: auto;
  39. transition: color;
  40. }
  41.  
  42. .nav > .menu
  43. {
  44. width: 25%;
  45. height:50px;
  46. float: left;
  47. text-align: center;
  48. font-size: 32px;
  49. color: white;
  50. transition: all 0.2s ease-in-out;
  51. }
  52.  
  53. .menu:hover
  54. {
  55. color:#2bdb20;
  56. transform: scale(1.2);
  57. }
  58.  
  59. .content
  60. {
  61.  
  62. width: 80%;
  63. margin-left: auto;
  64. margin-right: auto;
  65. position: relative;
  66.  
  67. }
  68.  
  69. .footer
  70. {
  71. width: 100%;
  72. height: 20px;
  73. margin-left: auto;
  74. margin-right: auto;
  75. text-align: center;
  76. background-color: rgba(0,0,0,0.5);
  77. font-size: 12px;
  78. color: white;
  79. position: absolute;
  80. bottom: 0;
  81. }
  82.  
  83. @keyframes slidy {
  84. 0% { left: 0%; }
  85. 20% { left: 0%; }
  86. 25% { left: -100%; }
  87. 45% { left: -100%; }
  88. 50% { left: -200%; }
  89. 70% { left: -200%; }
  90. 75% { left: -300%; }
  91. 95% { left: -300%; }
  92. 100% { left: -400%; }
  93. }
  94. * {
  95. box-sizing: border-box;
  96. }
  97. body, figure {
  98. margin: 0;
  99. }
  100. div#captioned-gallery {
  101. width: 100%; overflow: hidden;
  102. }
  103. figure.slider {
  104. position: absolute; width: 500%;
  105. font-size: 0; animation: 30s slidy infinite;
  106. }
  107. figure.slider figure {
  108. width: 20%; height: auto;
  109. display: inline-block; position: inherit;
  110. }
  111. figure.slider img { width: 100%; height: 700px;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement