Advertisement
Guest User

artsykitty764-CSS

a guest
Feb 15th, 2023
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1.  
  2. :root {
  3. --header-image: url('url'); /* This is the header background image */
  4. --body-bg-image: url('url');
  5.  
  6. /* colors */
  7. --content: #fff;
  8. }
  9.  
  10. @font-face {
  11. font-family: family;
  12. src: url('url');
  13. }
  14.  
  15. html {
  16. cursor: url('GB.png'), auto; /* change the url here for the cursor image you want */
  17. }
  18.  
  19. body {
  20. font-family: 'Arial', sans-serif;
  21. margin: 0;
  22. background-color: #fff;
  23. color: #fff;
  24. background-image: var(--body-bg-image);
  25.  
  26. }
  27.  
  28. * {
  29. box-sizing: border-box;
  30. }
  31.  
  32. /* this is where to edit the width of your site */
  33. #container {
  34. max-width: 1200px;
  35. /* this is the width */
  36. margin: 0 auto;
  37. /* this centers the entire page */
  38. }
  39.  
  40. /* links*/
  41. #container a {
  42. color: #D42D3D;
  43. font-weight: bold;
  44. }
  45.  
  46. #header {
  47. width: 100%;
  48. background-color: #c5c5c5; /* header color */
  49. height: 150px; /* adjusts header height */
  50. background-image: var(--header-image); /* this is only for a background image! */
  51. background-size: 100%;
  52. }
  53.  
  54. /* navigation */
  55. #navbar {
  56. background-color: #000; /* navbar color */
  57. width: 100%;
  58. flex-wrap: wrap;
  59. margin-top: 10px;
  60. }
  61.  
  62. #navbar ul {
  63. display: flex;
  64. padding: 0;
  65. margin: 0;
  66. list-style-type: none;
  67. justify-content: space-evenly;
  68. }
  69.  
  70. #navbar li {
  71. padding-top: 10px;
  72. }
  73.  
  74. /* navigation links*/
  75. #navbar li a {
  76. color: #fff; /* navbar text color */
  77. font-weight: 800; /* thickness of font */
  78. text-decoration: none;
  79. }
  80.  
  81. /* this is how you have an image behind each link. it creates a button that the text can go in. see the nav bar on the html page */
  82.  
  83. .button{
  84. background: url(image.png) no-repeat;
  85. cursor:pointer;
  86. border: none;
  87. width:100px;
  88. height:100px;
  89. }
  90.  
  91. #flex {
  92. display: flex;
  93. }
  94.  
  95. /* this is the color of the main content area */
  96. main {
  97. background-color: #c5c5c5;
  98. flex: 1;
  99. padding: 20px;
  100. order: 2;
  101. }
  102.  
  103. h1,
  104. h2,
  105. h3 {
  106. color: #D42D3D;
  107. }
  108.  
  109. h1 {
  110. font-size: 25px;
  111. }
  112.  
  113. strong {
  114. color: #D42D3D;
  115. }
  116.  
  117.  
  118. /* Responsive for mobile devices */
  119.  
  120. @media only screen and (max-width: 800px) {
  121. #flex {
  122. flex-wrap: wrap;
  123. }
  124.  
  125. aside {
  126. width: 100%;
  127. }
  128.  
  129. main {
  130. order: 1;
  131. }
  132.  
  133.  
  134. #navbar ul {
  135. flex-wrap: wrap;
  136. }
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement