topshopandtea

BEFORE </style> (bottom tab)

Sep 21st, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. #corner{
  2. bottom:-3px; /*DONT TOUCH UNLESS YOU TOUCH THE TAB HEIGHT*/
  3.  
  4. left:10px; /*HOW FAR FROM THE LEFT*/
  5.  
  6. /*DONT TOUCH*/
  7. width:85px;
  8. height:20px;
  9. position:fixed;
  10. float:left;
  11. -moz-transition-duration:0.3s;
  12. -webkit-transition-duration:0.3s;
  13. -o-transition-duration:0.3s;
  14. }
  15.  
  16. #corner:hover{
  17. bottom:150px; /*CHANGE THIS DEPENDING ON THE HEIGHT OF THE UPDATES*/
  18. /*ie. height:200px; then change this to 200px; */
  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-top: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