Advertisement
SteelPaladin

CSS - Educompute

Jun 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. /*Class for horizontal menus*/
  2. .hMenu {
  3. ul {
  4. position: fixed;
  5. top: 10;
  6. width: 100%;
  7. list-style-type: none;
  8. margin: 0;
  9. padding: 0;
  10. overflow: hidden;
  11. background-color: #3d4044;
  12. }
  13.  
  14. li {
  15. float: left;
  16. }
  17.  
  18. li a {
  19. display: block;
  20. color: white;
  21. text-align: center;
  22. padding: 14px 16px;
  23. text-decoration: none;
  24. font-size: 130%;
  25. font-family: Helvetica;
  26. }
  27. }
  28.  
  29. /*Class for Vertical Menus*/
  30. .vMenu {
  31. ul {
  32. list-style-type: none;
  33. margin: 0;
  34. padding: 0;
  35. width: 200px;
  36. background-color: #f1f1f1;
  37. }
  38.  
  39. li a {
  40. display: block;
  41. color: #000;
  42. padding: 8px 16px;
  43. text-decoration: none;
  44. }
  45.  
  46. /*Causes the buttons to alter colour when hovered over*/
  47. li a:hover {
  48. background-color: #555;
  49. color: white;
  50. }
  51. }
  52.  
  53. h1 {
  54. font-family:Helvetica;
  55. font-size: 42px;
  56. text-align: center;
  57. }
  58.  
  59. /*Causes the buttons to alter colour when hovered over*/
  60. li a:hover {
  61. background-color: #111;
  62. }
  63.  
  64. /*Sets the overall background colour.*/
  65. body {
  66. background-color: #cccccc;
  67. }
  68.  
  69. /*Gives padding around images*/
  70. img {
  71. padding: 5px;
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement