topshopandtea

BEFORE </style> (top tab)

Sep 21st, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. #corner{
  2. top:-156px; /*DONT TOUCH UNLESS YOU TOUCH THE TAB HEIGHT ALWAYS ADD +6 TO THIS*/
  3. /*ie. height is 200px this should be 206*/
  4.  
  5. left:10px; /*HOW FAR FROM THE LEFT*/
  6.  
  7. /*DONT TOUCH*/
  8. width:85px;
  9. height:20px;
  10. position:fixed;
  11. float:left;
  12. -moz-transition-duration:0.3s;
  13. -webkit-transition-duration:0.3s;
  14. -o-transition-duration:0.3s;
  15. }
  16.  
  17. #corner:hover{
  18. top:0px; /*how far from the top*/
  19.  
  20. -moz-transition-duration:0.3s;
  21. -webkit-transition-duration:0.3s;
  22. -o-transition-duration:0.3s;
  23. }
  24.  
  25. #corner:hover #tab{
  26. background-color:#fff; /*BACKGROUND COLOR*/
  27. color:#000; /*TEXT COLOR*/
  28.  
  29. /*MAKE THIS THE SAME COLOUR AS THE BACKGROUND */
  30. border-bottom:1px solid #000;
  31. border-left:1px solid #000;
  32. border-right:1px solid #000;
  33.  
  34. width:87px; /*ALWAYS MAKE THIS 3 LESS THAN THE WIDTH OF THE TAB*/
  35. /*ie width of the tab is 100px, make this 97px*/
  36. }
  37.  
  38. #tab{
  39. width:90px;
  40. font-family:calibri;
  41. text-transform:uppercase;
  42. text-align:center;
  43. color:#fff;
  44. background-color:#000;
  45. /*DONT TOUCH*/
  46. padding:3px;
  47. -moz-transition-duration:0.3s;
  48. -webkit-transition-duration:0.3s;
  49. -o-transition-duration:0.3s;
  50. }
  51.  
  52. #updates{
  53. width:87px; /*KEEP THIS 3 px smaller than the tab's width*/
  54. height:150px;
  55. font-size:8px;
  56. font-family:calibri;
  57. text-transform:uppercase;
  58. text-align:center;
  59. color:#000;
  60. border-left:1px solid #000;
  61. border-right:1px solid #000;
  62. background-color:#fff;
  63. /*DONT TOUCH*/
  64. padding:3px;
  65. -moz-transition-duration:0.3s;
  66. -webkit-transition-duration:0.3s;
  67. -o-transition-duration:0.3s;
  68. }
Advertisement
Add Comment
Please, Sign In to add comment