Aly

Dappervolk: Pet Page CSS - Navigation

Aly
Apr 4th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. body {
  2. background-color: #f5f5f5;
  3. font-family: Verdana;
  4. font-size: 11px;
  5. }
  6.  
  7. .wrapper {
  8. width: 100%;
  9. height: 100%;
  10. display: inline-table;
  11. vertical-align: top;
  12. text-align: center;
  13. }
  14.  
  15. .menu {
  16. vertical-align: middle;
  17. display: table-cell;
  18. text-align: center;
  19. }
  20.  
  21. h1 {
  22. margin: 0 0 40px 0;
  23. padding: 0;
  24. font-size: 50px;
  25. font-family: georgia, times, times new roman, serif;
  26. font-weight: 400;
  27. font-style: italic;
  28. }
  29.  
  30. .link {
  31. width: 100px;
  32. height: 100px;
  33. vertical-align: middle;
  34. background-color: #fff;
  35. display: inline-block;
  36. margin: 20px;
  37. overflow: hidden;
  38. }
  39.  
  40. .link a {
  41. width: 100%;
  42. height: 100%;
  43. }
  44.  
  45. .link a, .link u {
  46. text-decoration: none;
  47. }
  48.  
  49. .first, .second {
  50. width: 100px;
  51. height: 100px;
  52. float: left;
  53. vertical-align: top;
  54. line-height: 100px;
  55. }
  56.  
  57. .link .second {
  58. text-transform: uppercase;
  59. font-weight: bold;
  60. letter-spacing: 0.025em;
  61. font-size: 9px;
  62. display: none;
  63. }
  64.  
  65. .link:hover .first { display: none; }
  66. .link:hover .second { display: block; }
  67.  
  68. .block {
  69. margin: 0;
  70. padding: 0;
  71. width: 100%;
  72. height: 0px;
  73. }
  74.  
  75. /* change your colors here */
  76. .orange:hover { background-color: #f2af3f; }
  77. .pink:hover { background-color: #ed73ac; }
  78. .yellow:hover { background-color: #fcf473; }
  79. .green:hover { background-color: #97deb2; }
  80. .blue:hover { background-color: #63b1cd; }
  81. .purple:hover { background-color: #b8a2aa; }
  82.  
  83. .link a {
  84. color: #444; /* change your box text color here */
  85. }
Add Comment
Please, Sign In to add comment