Advertisement
MissDaphne

Simple Horizontal Navigation Tutorial Code #1

Jan 25th, 2016
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. /*TUTORIAL BY DAPHNE ROSS*/
  2.  
  3. #hn{
  4. width: 100%;
  5. height:50px;
  6. margin-top:-10px;
  7. margin-left:-10px;
  8. background-color:#000000; /*bg color*/
  9. position:absolute; /*change this if necessary*/
  10. z-index:15;
  11. }
  12.  
  13. div.links a{
  14. margin-top:22px;
  15. width:100px; /*change this if necessary*/
  16. font-family:Arial; /*change this if necessary*/
  17. font-size:12px; /*change this if necessary*/
  18. letter-spacing:1px;
  19. text-align:center;
  20. color:#ffffff; /*text color*/
  21. text-transform:uppercase;
  22. text-align:center;
  23. display:inline-block;
  24. font-weight: normal;
  25. transition: all 0.5s ease;
  26. -o-transition-transition: all 0.5s ease;
  27. -webkit-transition: all 0.5s ease;
  28. -moz-transition: all 0.5s ease;
  29. }
  30.  
  31. div.links a:hover{
  32. background:#ffffff; /*change this if necessary*/
  33. color: #000000; /*change this if necessary*/
  34. transform:scale(1.2); /*hover effect*/
  35. }
  36.  
  37. /*TUTORIAL BY DAPHNE ROSS*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement