Advertisement
tomkirk

Tut 1

Mar 23rd, 2014
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. Copy and paste the following between <style> and </style>
  2. ---------------------------------------------------------
  3.  
  4. #link{
  5. display:inline-block;
  6. width:120px;
  7. height:15px;
  8. overflow:hidden;
  9. margin:0 5px 0 5px;
  10. padding:5px;
  11. text-align:center;
  12. font-family:helvetica;
  13. font-size:13px;
  14. letter-spacing:2px;
  15. background:#B9ED6B; /*main 'link' color*/
  16. color:#ffffff; /*main 'link' text color*/
  17. z-index:99999999999999999;
  18. }
  19.  
  20. #link #link-content{
  21. position:absolute;
  22. height:0px;
  23. overflow:hidden;
  24. margin-top:6px;
  25. margin-left:-5px;
  26. -webkit-transition: all 0.4s ease-out;
  27. -moz-transition: all 0.4s ease-out;
  28. transition: all 0.4s ease-out;
  29. }
  30.  
  31. #link:hover #link-content{
  32. height:100px; /*if you add more links you'll need to make this number larger*/
  33. }
  34.  
  35. #link-content a{
  36. display:block;
  37. width:126px;
  38. padding:2px;
  39. text-align:center;
  40. background:#ffffff; /*link color*/
  41. color:#B9ED6B; /*link text*/
  42. border-bottom:1px solid #B9ED6B; /*link bottom border color*/
  43. -webkit-transition: all 0.4s ease-out;
  44. -moz-transition: all 0.4s ease-out;
  45. transition: all 0.4s ease-out;
  46. }
  47.  
  48. #link-content a:hover{
  49. background:#B9ED6B; /*link hover color*/
  50. color:#ffffff; /*link hover text*/
  51. }
  52.  
  53.  
  54. Now copy and paste the following where you want your links to be. You'll need to find where the custom links in your theme go (they should be between <body> and </body>) There you will delete the "<a href=" custom link url"> custom link name </a>" and replace it with this code.
  55.  
  56. -You can use this to replace more than one link, just change the names of the 'main' link and actual links!
  57.  
  58. -------------------------------------------------------------------------------------------------------------------------------
  59.  
  60. <div id="link">
  61. Link 1 <!-- name of 'main' link -->
  62. <div id="link-content">
  63. <a href="URL">one</a>
  64. <a href="URL">two</a>
  65. <a href="URL">three</a>
  66. <a href="URL">four</a>
  67. </div>
  68. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement