Tayo69

news360 css

Feb 9th, 2022
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.78 KB | None | 0 0
  1. html {
  2.   box-sizing: border-box;
  3.   padding: 0px;
  4.   margin: 0px;
  5. }
  6.  
  7. body {
  8.   margin: 20px 30px 20px 30px;
  9.   font-family: Arial, Helvetica, sans-serif;
  10.   font-size: 20px;
  11.   padding: 0;
  12. }
  13.  
  14. header {
  15.   display: flex;
  16.   justify-content: space-between;
  17.   padding-bottom: 10px;
  18. }
  19.  
  20. .header-right {
  21.   display: flex;
  22. }
  23.  
  24. .search-box {
  25.   border: 2px solid black;
  26.   border-radius: 4px;
  27.   width: 250px;
  28.   margin-right: 30px;
  29. }
  30.  
  31. .search-text {
  32.   border: none;
  33.   color: black;
  34.   font-weight: bold;
  35.   font-size: 16px;
  36.   padding-left: 10px;
  37. }
  38.  
  39. .search-text:focus {
  40.   outline: none;
  41. }
  42.  
  43. .search-box a i {
  44.   color: gray;
  45.   font-size: 16px;
  46.   padding-left: 3px;
  47. }
  48.  
  49. .help a {
  50.   color: blue;
  51.   font-size: 16px;
  52.   text-decoration: none;
  53. }
  54.  
  55. .help span {
  56.   color: blue;
  57.   padding-left: 2px;
  58. }
  59.  
  60. .logo a {
  61.   font-weight: bold;
  62.   font-size: 20px;
  63.   text-decoration: none;
  64.   color: #020222;
  65. }
  66.  
  67. .logo span {
  68.   font-size: 25px;
  69. }
  70.  
  71. .logo span {
  72.   border-radius: 50%;
  73.   border: 2px solid black;
  74.   font-family: monospace;
  75. }
  76.  
  77. .span1 {
  78.   background-color: blue;
  79.   color: white;
  80. }
  81. .span2 {
  82.   background-color: red;
  83.   margin-left: 2px;
  84.   color: white;
  85. }
  86.  
  87. .span3 {
  88.   margin-left: 2px;
  89. }
  90. .container {
  91.   display: grid;
  92.   grid-template-columns: 0.6fr 1.4fr 1fr;
  93.   grid-template-areas:
  94.     "featured featured featured"
  95.     "navigation article-title projects";
  96.   grid-gap: 30px;
  97. }
  98.  
  99. .featured {
  100.   grid-area: featured;
  101.   background: url(jessica.jpg);
  102.   background-size: cover;
  103.   background-position: top;
  104.   min-height: 350px;
  105.   display: flex;
  106.   align-items: center;
  107.   position: relative;
  108. }
  109.  
  110. .featured::after {
  111.   content: "";
  112.   display: block;
  113.   width: 100%;
  114.   height: 100%;
  115.   background-color: black;
  116.   position: absolute;
  117.   top: 0;
  118.   left: 0;
  119.   opacity: 0.1;
  120. }
  121.  
  122. .featured-text {
  123.   padding-left: 90px;
  124.   width: 900px;
  125.   line-height: 20px;
  126.   color: white;
  127.   z-index: 10000;
  128. }
  129.  
  130. .article-title {
  131.   grid-area: article-title;
  132.   font-size: 16px;
  133. }
  134.  
  135. .first-text h4 {
  136.   color: gray;
  137. }
  138.  
  139. .box-2 h4 {
  140.   color: gray;
  141. }
  142.  
  143. .article-title a {
  144.   text-decoration: none;
  145.   color: black;
  146. }
  147.  
  148. .article-title a :hover {
  149.   color: red;
  150. }
  151.  
  152. .navigation {
  153.   list-style: none;
  154.   grid-area: navigation;
  155.   background-color: rgb(2, 2, 34);
  156.   display: grid;
  157.   grid-template-columns: 1fr;
  158.   margin-top: 15px;
  159.   line-height: 15px;
  160. }
  161.  
  162. .navigation li a {
  163.   text-decoration: none;
  164.   color: white;
  165.   font-size: 17px;
  166. }
  167.  
  168. .navigation h2 {
  169.   color: white;
  170.   font-size: 30px;
  171. }
  172.  
  173. .navigation a h2:hover {
  174.   color: gray;
  175. }
  176.  
  177. .box-2 {
  178.   display: grid;
  179.   grid-template-columns: 1fr 1fr;
  180.   grid-gap: 10px;
  181. }
  182.  
  183. .box-1 {
  184.   display: grid;
  185.   grid-template-columns: 1fr 1fr;
  186.   grid-gap: 20px;
  187. }
  188.  
  189. .article-image {
  190.   height: 300px;
  191.   width: 400px;
  192.   padding-top: 20px;
  193.   position: relative;
  194. }
  195.  
  196. .style {
  197.   position: absolute;
  198.   color: black;
  199.   border-bottom: 2px solid white;
  200.   border-right: 2px solid white;
  201.   padding: 10px 0px 0px 10px;
  202.   width: 100px;
  203.   background-color: white;
  204.   top: 55%;
  205. }
  206.  
  207. .latest {
  208.   border: 2px solid black;
  209.   margin-top: 10px;
  210.   height: 40px;
  211.   display: flex;
  212.   align-items: center;
  213.   padding-left: 10px;
  214. }
  215.  
  216. .news-image {
  217.   height: 250px;
  218.   width: 350px;
  219. }
  220.  
  221. .employees {
  222.   display: grid;
  223.   grid-template-columns: 1fr 1fr 1fr;
  224. }
  225. .employees h4 {
  226.   border: 2px solid black;
  227.   padding: 10px 0px 10px 10px;
  228. }
  229. .employees h4:hover {
  230.   background-color: gray;
  231. }
  232. .emp-text {
  233.   background-color: gray;
  234. }
  235.  
  236. .emp-text:hover {
  237.   background-color: white;
  238.   cursor: pointer;
  239. }
  240.  
  241. .projects {
  242.   grid-area: projects;
  243.   padding-top: 20px;
  244.   font-size: 16px;
  245. }
  246. .project-top {
  247.   display: flex;
  248.   justify-content: space-between;
  249.   border: 2px solid black;
  250.   height: 40px;
  251.   align-items: center;
  252.   padding: 0px 10px 0px 5px;
  253. }
  254.  
  255. .project-middle {
  256.   display: flex;
  257. }
  258. .project-image {
  259.   height: 100px;
  260.   width: 200px;
  261.   padding-top: 20px;
  262.   padding-right: 20px;
  263. }
  264.  
  265. .project-top-two {
  266.   display: flex;
  267.   justify-content: space-between;
  268.   border: 2px solid black;
  269.   height: 40px;
  270.   align-items: center;
  271.   margin-top: 30px;
  272.   padding: 0px 10px 0px 5px;
  273. }
  274.  
  275. .project-text a {
  276.   text-decoration: none;
  277.   color: black;
  278. }
  279.  
  280. .project-text a:hover {
  281.   color: red;
  282. }
  283.  
  284. .documents {
  285.   display: grid;
  286.   grid-template-columns: repeat(4, 1fr);
  287.   grid-gap: 5px;
  288.   padding-top: 20px;
  289.   font-size: 15px;
  290.   text-align: center;
  291. }
  292.  
  293. .fa-solid {
  294.   margin-bottom: -50px;
  295. }
  296.  
  297. video {
  298.   width: 500px;
  299.   height: 350px;
  300.   padding-top: -40px;
  301. }
  302.  
  303. .profile-pic {
  304.   height: 100px;
  305.   width: 100px;
  306. }
  307.  
  308. .profile {
  309.   display: grid;
  310.   grid-template-columns: repeat(7, 1fr);
  311. }
  312.  
  313. .last-text {
  314.   display: flex;
  315.   flex-direction: column;
  316.   justify-content: center;
  317.   align-items: center;
  318.   min-height: 100px;
  319.   font-size: 15px;
  320. }
  321.  
Advertisement
Add Comment
Please, Sign In to add comment