Advertisement
makispaiktis

Codecademy - Open Exercise (MySolution - CSS)

Dec 10th, 2019 (edited)
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.58 KB | None | 0 0
  1. body{
  2.     /*margin: 0;*/
  3.     font-family: Helvetica;
  4.     background-color: black;
  5.     color: rgb(245, 221, 205);
  6.     opacity: 0.9;
  7. }
  8.  
  9.  
  10. /* Header Section*/
  11.  
  12. header{
  13.     height: 69px;
  14.     width: 100%;
  15.     border-bottom: 2px solid seashell;
  16. }
  17.  
  18. h1.inlineBlock{
  19.     margin-left: 10px;
  20.     display: inline-block;
  21.     color: rgb(245, 221, 205);;
  22.     font-family: "Helvetica", cursive;
  23.     height: 50px;
  24.     font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  25.     text-align: left;
  26. }
  27.  
  28. h2.inlineBlock{
  29.     margin-right: 10px;
  30.     padding: 0 20px;
  31.     /*display: inline-block;*/
  32.     color: rgb(245, 221, 205);;
  33.     font-size: 18px;
  34.     text-decoration: underline;
  35.     float: right;
  36. }
  37.  
  38. header a{
  39.     position: relative;
  40.     bottom: 90px;
  41. }
  42.  
  43.  
  44. /* Section with image*/
  45.  
  46. section.image{
  47.     height: 700px;
  48.     width: 1200px;
  49.     /*border: 3px solid red;*/
  50.     margin: 0 auto;
  51.     background-image: url("./img-mission-background.jpg");
  52. }
  53.  
  54. div.h{
  55.     height: 120px;
  56.     width: 100%;
  57.     background-color: black;
  58.     color: rgb(245, 221, 205);;
  59.     position: relative;
  60.     top: 270px;
  61.     display: flex;
  62.     flex-wrap: wrap;
  63.     justify-content: center;
  64.     align-items: center;
  65. }
  66.  
  67. div.h h2{
  68.     width: 100%;
  69.     position: relative;
  70.     left: 530px;
  71. }
  72.  
  73.  
  74. /* Section with the 5 photos*/
  75. section.photos{
  76.     width: 1000px;
  77.     /*border: 3px solid red;*/
  78.     text-align: center;
  79.     margin: 40px auto;
  80. }
  81.  
  82. section.photos h1{
  83.     font-size: 36px;
  84.     color: rgb(245, 221, 205);;
  85.     text-decoration: underline;
  86. }
  87.  
  88. section.photos h2{
  89.     font-size: 24px;
  90.     color: rgb(245, 221, 205);;
  91. }
  92.  
  93. div.container{
  94.     display: flex;
  95.     flex-wrap: wrap;
  96.     justify-content: space-around;
  97.     align-content: space-between;
  98. }
  99.  
  100. div.photo{
  101.     height: 200px;
  102.     width: 300px;
  103.     margin: 20px 0;
  104.     /*border: 2px solid red;*/
  105. }
  106.  
  107. #photo1{
  108.     background-image: url("./img-berryblitz.jpg");
  109.     background-position: center; /* Center the image */
  110.     background-repeat: no-repeat; /* Do not repeat the image */
  111.     background-size: cover; /* Resize the background image to cover the entire container */
  112. }
  113.  
  114. #photo2{
  115.     background-image: url("./img-spiced-rum.jpg");
  116.     background-position: center; /* Center the image */
  117.     background-repeat: no-repeat; /* Do not repeat the image */
  118.     background-size: cover; /* Resize the background image to cover the entire container */
  119. }
  120.  
  121. #photo3{
  122.     background-image: url("./img-donut.jpg");
  123.     background-position: center; /* Center the image */
  124.     background-repeat: no-repeat; /* Do not repeat the image */
  125.     background-size: cover; /* Resize the background image to cover the entire container */
  126. }
  127.  
  128. #photo4{
  129.     background-image: url("./img-myrtle-ave.jpg");
  130.     background-position: center; /* Center the image */
  131.     background-repeat: no-repeat; /* Do not repeat the image */
  132.     background-size: cover; /* Resize the background image to cover the entire container */
  133. }
  134.  
  135. #photo5{
  136.     background-image: url("./img-bedford-bizarre.jpg");
  137.     background-position: center; /* Center the image */
  138.     background-repeat: no-repeat; /* Do not repeat the image */
  139.     background-size: cover; /* Resize the background image to cover the entire container */
  140. }
  141.  
  142. div.container div h2{
  143.     font-style: italic;
  144. }
  145.  
  146.  
  147. /* Section with locations*/
  148. section.locations{
  149.     height: 500px;
  150.     width: 1000px;
  151.     text-align: center;
  152.     margin: 30px auto;
  153.     /*border: 3px solid red;*/
  154.     background-image: url("./img-locations-background.jpg");
  155.     background-position: center; /* Center the image */
  156.     background-repeat: no-repeat; /* Do not repeat the image */
  157.     background-size: cover; /* Resize the background image to cover the entire container */
  158. }
  159.  
  160.  
  161. div.div1{
  162.     height: 150px;
  163.     width: 100%;
  164.     /*border: 1px solid blue;*/
  165. }
  166.  
  167.  
  168. div.div1 h1{
  169.     font-size: 28px;
  170.     position: relative;
  171.     top: 60px;
  172. }
  173.  
  174.  
  175. div.container2{
  176.     height: 350px;
  177.     width: 100%;
  178.     /*border: 1px solid blue;*/
  179.     display: flex;
  180.     flex-wrap: wrap;
  181.     justify-content: center;
  182.     align-items: flex-start;
  183. }
  184.  
  185. div.container2 div.box{
  186.     height: 250px;
  187.     width: 250px;
  188.     border: 1px solid black;
  189.     margin: 0 20px;
  190.     background-color: black;
  191.     border: 3px solid rgb(150, 12, 12);
  192. }
  193.  
  194. div.box h3, div.box h4{
  195.     margin: 30px auto;
  196. }
  197.  
  198.  
  199.  
  200. /* Last Section */
  201. section.end{
  202.     text-align: center;
  203. }
  204.  
  205. section.end h1{
  206.     font-size: 36px;
  207. }
  208.  
  209. section.end h5{
  210.     font-size: 18px;
  211.     margin: 45px;
  212. }
  213.  
  214. footer h3{
  215.     text-align: left;
  216.     margin-left: 20px;
  217. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement