Advertisement
basilhaidi

css

May 20th, 2020
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.96 KB | None | 0 0
  1. @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
  2. body {
  3.     font-family: 'Roboto', sans-serif;
  4.     margin: 0;
  5.     padding: 0;
  6.   }
  7.  
  8.   header {
  9.     display: inline;
  10.  }
  11.  
  12.  nav {
  13.     background-color: #545659;
  14.     padding: 5px;
  15.     position: sticky;
  16.     top: 0;
  17.  }
  18.  
  19.  nav ul{
  20.     padding-inline-start: 0px;
  21.  }
  22.  nav ul li{
  23.     display: inline;
  24.     list-style: none;
  25.     padding: 22px;
  26.  }
  27.  
  28. nav ul li:hover{
  29.     background:#666;
  30. }
  31.  
  32. nav ul li a {
  33.     font-size: 14px;
  34.     font-weight: 400;
  35.     text-decoration: none;
  36.     color: white;
  37.  }
  38.  
  39. #beranda{
  40.   position: relative;
  41.   text-align: center;
  42.   color: white;
  43. }
  44.  
  45. #background-header{
  46.    width: 100%;
  47.    max-height: 700px;
  48.    object-fit: cover;
  49.    object-position: center;
  50. }
  51.  
  52. .jumbotron {
  53.    position: absolute;
  54.    top: 50%;
  55.    left: 50%;
  56.    width: 100%;
  57.    height: 30%;
  58.    transform: translate(-50%, -50%);
  59.    font-size: 20px;
  60.    letter-spacing: 5px;
  61.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement