Advertisement
thotfrnk

assignment1.css

Oct 27th, 2023
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.08 KB | None | 0 0
  1. /*Main website layout: the box model*/
  2.  
  3. html {
  4.   font-family: Gravity, "Open Sans";
  5.   background-color: #8E9DCC;
  6. }
  7.  
  8. /*page layout for the entire website*/
  9.  
  10. .box {
  11.   width: 1100px;
  12.   margin: 0 auto;
  13.   padding: 0 20px 20px 20px;
  14. }
  15.  
  16. /*navigation bar*/
  17.  
  18. nav {
  19.   font-family: 'Lemon Milk';
  20.   font-size: 20px;
  21.   clear:both;
  22.   overflow: hidden;
  23.   background-color: #7D84B2;
  24. }
  25.  
  26. nav ul {
  27.   list-style-type: none;
  28. }
  29.  
  30. nav ul li {
  31.   float: left;
  32.   margin-right: 1em;
  33. }
  34.  
  35. nav ul li a {
  36.   padding: 0.25em 1em 1em;
  37.   text-decoration: none;
  38.   color: #121212;
  39.   text-align: center;
  40.   display: block;
  41. }
  42.  
  43. nav ul li a:hover, nav ul li a:focus {
  44.   color: #061826;
  45.   background-color: #CFCFEA;
  46.   font-weight: bold;
  47. }
  48.  
  49. #search {
  50.   float: right;
  51.   width: 110px;
  52. }
  53.  
  54. h1 {
  55.   font-family: Vogue;
  56. }
  57.  
  58. .header_center {
  59.   text-align: center;
  60.   font-size: 45px;
  61. }
  62.  
  63. /*index content style*/
  64.  
  65. .about {
  66.   font-family: Gravity;
  67. }
  68.  
  69. #paragraph1 {
  70.   font-size: 35px;
  71.   padding: 50px;
  72. }
  73.  
  74. #paragraph2 {
  75.   font-size: 35px;
  76.   padding: 50px 25px;
  77. }
  78.  
  79. #paragraph3 {
  80.   font-size: 35px;
  81.   padding: 20px;
  82. }
  83.  
  84. #img1 {
  85.   float:right;
  86.   padding: 10px;
  87. }
  88.  
  89. #img2 {
  90.   float:left;
  91.   padding: 10px;
  92. }
  93.  
  94. #img3, #img4, #img5 {
  95.   float:right;
  96.   padding: 10px;
  97. }
  98.  
  99. /*Registration form*/
  100.  
  101. #register {
  102.   width: 400px;
  103.   height: 655px;
  104.   margin: auto;
  105. }
  106.  
  107. /*Post form*/
  108.  
  109. #postfrm {
  110.   width: 400px;
  111.   height: 329px;
  112. }
  113.  
  114. /*Contact form*/
  115.  
  116. #contact {
  117.   width: 400px;
  118.   height: 265px;
  119. }
  120.  
  121. #contact_para {
  122.   float: right;
  123.   margin-left: 250px;
  124.   margin-right: 150px;
  125. }
  126.  
  127. /*style for all forms*/
  128.  
  129. form {
  130.   padding: 10px;
  131.   font-family: 'Century Gothic';
  132.   background-color: #D4C5E2;
  133. }
  134.  
  135. input[type=text], input[type=email], input[type=password], input[type=number], input[type='tel'] {
  136.   width: 250px;
  137.   padding: 12px 20px;
  138.   margin: 8px 0;
  139.   box-sizing: border-box;
  140.   border: 1px solid black;
  141.   border-radius: 25px;
  142. }
  143.  
  144. input[type=submit] {
  145.   width: 100px;
  146.   height: 35px;
  147.   clear: both;
  148.   border: none;
  149.   border-radius: 25px;
  150.   padding: 5px 5px;
  151.   background-color: white;
  152. }
  153.  
  154. .form_para {
  155. text-align: center;
  156. color: black;
  157. font-size: 15px;
  158. margin-top: 40px;
  159. padding: 15px;
  160. }
  161.  
  162. #reg_sign {
  163.   text-align: center;
  164. }
  165.  
  166. /*gallery*/
  167.  
  168. /*Base code for image gallery
  169. W3Schools. (n.d.). CSS Image Gallery. CSS image gallery. https://www.w3schools.com/css/css_image_gallery.asp . Retrieved 21st Oct. 2023.*/
  170.  
  171. /*CSS box shadow code:
  172. W3Schools. (n.d.). CSS box shadow. https://www.w3schools.com/css/css3_shadows_box.asp . Retrieved 22nd Oct. 2023.*/
  173.  
  174. div.gallery {
  175.   margin: 5px;
  176.   float: left;
  177.   width: 500px;
  178.   padding: 10px;
  179.   background-color: #8E9DCC;
  180.   box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  181. }
  182.  
  183. div.caption {
  184.   padding: 5px;
  185.   text-align: center;
  186. }
  187.  
  188. div.author {
  189.   float: left;
  190.   font-family: 'Franklin Gothic Book';
  191. }
  192.  
  193. div.date {
  194.   float: right;
  195.   font-family: 'Courier New';
  196. }
  197.  
  198. /*footer*/
  199.  
  200. .footer {
  201.   padding: 10px;
  202.   font-family: "Franklin Gothic Book";
  203.   clear: both;
  204.   text-align: center;
  205. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement