Advertisement
makispaiktis

Codecademy - Open Exercise (Solution - CSS)

Dec 9th, 2019 (edited)
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.08 KB | None | 0 0
  1. /* Universal Styles */
  2.  
  3. body {
  4.   margin: 0;
  5.   font-family: "Helvetica", sans-serif;
  6.   color: seashell;
  7.   background-color: black;
  8.   font-size: 22px;
  9.   text-align: center;
  10. }
  11.  
  12. a {
  13.   color: seashell;
  14. }
  15.  
  16. h2,
  17. h3,
  18. h4 {
  19.   margin: 0;
  20.   padding: 10px;
  21. }
  22.  
  23. .flex-container {
  24.   display: flex;
  25.   justify-content: center;
  26.   flex-wrap: wrap;
  27. }
  28.  
  29. /* Header Section */
  30.  
  31. header {
  32.   width: 100%;
  33.   position: fixed;
  34.   z-index: 1;
  35.   height: 69px;
  36.   background-color: black;
  37.   border-bottom: 1px solid seashell;
  38.   align-items: center;
  39. }
  40.  
  41. header img {
  42.   height: 50px;
  43.   padding-left: 10px;
  44. }
  45.  
  46. nav {
  47.   text-align: right;
  48.   flex-grow: 1;
  49. }
  50.  
  51. nav span {
  52.   display: inline-block;
  53.   padding: 20px 10px;
  54. }
  55.  
  56. /* Main Section */
  57.  
  58. .main {
  59.   padding-top: 69px;
  60.   opacity: 0.9;
  61.   width: 1200px;
  62.   margin: auto;
  63. }
  64.  
  65. /* Mission Section */
  66.  
  67. #mission {
  68.   height: 700px;
  69.   background-image: url("https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-mission-background.jpg");
  70.   padding-top: 70px;
  71. }
  72.  
  73. #mission .content {
  74.   margin: auto;
  75.   background-color: black;
  76.   width: 100%;
  77. }
  78.  
  79. /* Store Section */
  80.  
  81. #store {
  82.   height: 700px;
  83.   width: 1000px;
  84.   margin: auto;
  85.   padding-top: 70px;
  86. }
  87.  
  88. .item {
  89.   padding: 5px;
  90. }
  91.  
  92. .item img {
  93.   height: 200px;
  94.   margin: 10px;
  95.   display: block;
  96. }
  97.  
  98. .item span {
  99.   display: block;
  100.   padding: 5px;
  101.   font-weight: bold;
  102.   text-align: center;
  103. }
  104.  
  105. /* Location Section */
  106.  
  107. .flex-container.locations {
  108.   padding-top: 5px;
  109. }
  110.  
  111. #locations {
  112.   background-image: url("https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-locations-background.jpg");
  113.   height: 500px;
  114.   padding-top: 70px;
  115. }
  116.  
  117. #locations .flex-container {
  118.   margin: auto;
  119.   width: 1100px;
  120. }
  121.  
  122. .location {
  123.   opacity: 1.0;
  124.   padding: 10px;
  125.   margin: 5px 20px;
  126.   background-color: black;
  127.   flex-basis: 280px;
  128.   display: flex;
  129.   flex-direction: column;
  130.   justify-content: center;
  131. }
  132.  
  133. /* Contact Section */
  134.  
  135. #contact {
  136.   height: 200px;
  137. }
  138.  
  139. /* Footer Section */
  140.  
  141. footer {
  142.   text-align: left;
  143.   padding-left: 20px;
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement