Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. index.htm:
  2. <html>
  3. <head>
  4. <link href='https://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css'>
  5. <link rel="stylesheet" href="./stylesheets/global.css" />
  6. <meta charset="utf-8">
  7. <title></title>
  8. </head>
  9. <body>
  10. <div class="navBody">
  11. <a href="index.htm" class="navItem1">HOME</a>
  12. <a href="#" class="navItem2">ABOUT</a>
  13. <a href="#" class="navItem4">COTACT</a>
  14. <a href="#" class="navItem3">GAMES</a>
  15. <br>
  16. </div>
  17. </body>
  18. </html>
  19.  
  20. stylesheets/global.css:
  21. body {
  22. margin: 0px;
  23. padding: 0px;
  24. background-color: #ecf0f1;
  25. }
  26.  
  27. .navBody {
  28. background-color: #2c3e50;
  29. padding: 25px;
  30. width: 100%;
  31. position: fixed;
  32. -webkit-transition: background-color .5s;
  33. -moz-transition: background-color .5s;
  34. -o-transition: background-color .5s;
  35. }
  36.  
  37. .navBody:hover {
  38. background-color: #34495e;
  39. -webkit-transition: background-color .5s;
  40. -moz-transition: background-color .5s;
  41. -o-transition: background-color .5s;
  42. }
  43.  
  44. .navItem1 {
  45. margin-left: 120px;
  46. font-family: "Poiret One";
  47. font-size: 26px;
  48. color: #bdc3c7;
  49. font-weight: bolder;
  50. text-decoration: none;
  51. -webkit-transition: color 1s;
  52. -moz-transition: color 1s;
  53. -o-transition: color 1s;
  54. }
  55.  
  56. .navItem2 {
  57. margin-left: 20px;
  58. font-family: "Poiret One";
  59. font-size: 26px;
  60. color: #bdc3c7;
  61. font-weight: bolder;
  62. text-decoration: none;
  63. -webkit-transition: color 1s;
  64. -moz-transition: color 1s;
  65. -o-transition: color 1s;
  66. }
  67.  
  68. .navItem3 {
  69. margin-left: 20px;
  70. font-family: "Poiret One";
  71. font-size: 26px;
  72. color: #bdc3c7;
  73. font-weight: bolder;
  74. text-decoration: none;
  75. -webkit-transition: color 1s;
  76. -moz-transition: color 1s;
  77. -o-transition: color 1s;
  78. }
  79.  
  80. .navItem4 {
  81. margin-left: 20px;
  82. font-family: "Poiret One";
  83. font-size: 26px;
  84. color: #bdc3c7;
  85. font-weight: bolder;
  86. text-decoration: none;
  87. -webkit-transition: color 1s;
  88. -moz-transition: color 1s;
  89. -o-transition: color 1s;
  90. }
  91.  
  92. .navItem1:hover {
  93. color: #ecf0f1;
  94. -webkit-transition: color .5s;
  95. -moz-transition: color .5s;
  96. -o-transition: color .5s;
  97. }
  98.  
  99. .navItem2:hover {
  100. color: #ecf0f1;
  101. -webkit-transition: color .5s;
  102. -moz-transition: color .5s;
  103. -o-transition: color .5s;
  104. }
  105.  
  106. .navItem3:hover {
  107. color: #ecf0f1;
  108. -webkit-transition: color .5s;
  109. -moz-transition: color .5s;
  110. -o-transition: color .5s;
  111. }
  112.  
  113. .navItem4:hover {
  114. color: #ecf0f1;
  115. -webkit-transition: color .5s;
  116. -moz-transition: color .5s;
  117. -o-transition: color .5s;
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement