Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. HTMl
  2. ------------------------------
  3. <body>
  4. <header>
  5. <div class="imagelogo">
  6. <a href="index.html"><img src="img/logo.png" alt="logo"></a>
  7. </div>
  8. <div class="nav">
  9. -------------------------------
  10. CSS
  11.  
  12. .nav img {
  13. float: left;
  14.  
  15. z-index:+1;
  16. }
  17. .nav ul {
  18. list-style: none;
  19. background-color: black;
  20. text-align: right;
  21. padding: 0;
  22. margin: auto;
  23. width: 70%;
  24. box-shadow: 0 0 60px;
  25.  
  26.  
  27. }
  28. .imagelogo
  29. {
  30. position:absolute;
  31. top: 8px;
  32. left:230px;
  33. }
  34.  
  35. .nav a {
  36. text-decoration: none;
  37. color: #fff;
  38. display: block;
  39. transition: .3s background-color;
  40. text-align: center;
  41. padding-top: 40px;
  42. padding-bottom: 40px;
  43.  
  44. }
  45.  
  46. .nav a:hover {
  47. background-color:orange;
  48. }
  49.  
  50. .nav active {
  51. background-color: #fff;
  52. color: #444;
  53.  
  54. }
  55.  
  56.  
  57. .nav li {
  58. width: 120px;
  59. border-bottom: none;
  60. line-height: 50px;
  61. font-size: 2.4em;
  62. display: inline-block;
  63. margin-right: 10px;
  64. font-family: 'Khand', sans-serif;
  65. line-height: 0px;
  66. height: 79px;
  67.  
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement