Advertisement
Guest User

CSS WWU

a guest
Nov 15th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. *{
  2. box-sizing: border-box;
  3. }
  4. body{
  5. font-family: sans-serif;
  6. }
  7. #wrapper{
  8. width: 80%;
  9. margin:auto;
  10. background-color: #eaeaea;
  11. box-shadow: 0 0 10px rgba(12,3,25,0.8);
  12. }
  13. header{
  14. background-color: #00795f;
  15. padding: 20px;
  16. color:#fff;
  17. text-align: center;
  18. }
  19.  
  20. nav ul{
  21. list-style-type: none;
  22. margin:0;
  23. padding: 0;
  24. width: 100%;
  25. background-color: #fff;
  26. text-align: center;
  27. }
  28. nav ul li{
  29. display: inline-block;
  30. position: relative;
  31. }
  32. nav ul li a{
  33. text-decoration: none;
  34. padding: 10px 20px;
  35. display: block;
  36. font-weight: bold;
  37. line-height: 40px;
  38. }
  39. /* Drop down Navigation */
  40. nav ul li ul{
  41. position: absolute;
  42. display: none;
  43. min-width: 100%;
  44. }
  45. nav ul li:hover ul{
  46. display: block;
  47. }
  48. nav ul li ul li{
  49. display: block;
  50. }
  51. nav ul li ul li a{
  52. text-align: center;
  53. }
  54. /* Psuedo class - nav a:link, nav a:visited, nav a:hover, nav a:active; */
  55. nav ul li a:link{
  56. color: #333;
  57. }
  58. nav ul li a:visited{
  59. color:green;
  60. }
  61. nav ul li a:hover{
  62. color:red;
  63. }
  64. main{
  65. padding: 10px;
  66. }
  67. /* footer style */
  68. footer{
  69. background-color: #00795f;
  70. padding: 20px;
  71. color:#fff;
  72. text-align: center;
  73. }
  74. /* fragment Identifier, fragment, id */
  75. /* 2 component -
  76. 1. id in your html element
  77. 2. href #idname */
  78. #list{
  79. margin-top: 400px;
  80. }
  81. #link{
  82. text-decoration: none;
  83. background-color: #005442;
  84. color: white;
  85. padding: 10px;
  86. box-shadow: 0 0 10 white;
  87. border-radius: 8px;
  88. position: fixed;
  89. bottom: 20px;
  90. right: 50px;
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement