Advertisement
0fficialvanessa

Scrollbar In Your Description - Tutorial!

Jun 4th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. START READING HERE, SO YOU WON'T GET CONFUSED! XXX
  2. It'll all depend on the Theme you're using. If it's a Description where you need to hover over the Sidebar, and it fades - It's not going to work. But if It's a box with no need for fading and etcetera, It'll work.
  3.  
  4. 1) SCROLL DOWN TO YOUR <style type="text/css"> Which is normally in the beginning of your Theme
  5. 2) POST THE FOLLOWING CODE SOMEWHERE BELOW IT::
  6.  
  7. ::-webkit-scrollbar {
  8. width: 4px;
  9. height: 4px;
  10. border-left:0px solid #ccc;
  11. background-color:{color:background};
  12. }
  13.  
  14. ::-webkit-scrollbar-thumb {
  15. background: {color:scrollbar};
  16. }
  17.  
  18. ::-webkit-scrollbar {
  19. width: 5px;
  20. height: 5px;
  21. background: #dddddd;
  22. }
  23.  
  24. ::-webkit-scrollbar-thumb {
  25. background-color:{color:scrollbar};
  26. }
  27.  
  28. --
  29. 3) NOW YOU'RE GONNA CHANGE THE WIDTH, COLORS, AND HEIGHT. You can leave it the way it is now, and enter a meta name code which should be above the <style type="text/css"> Code::
  30.  
  31. <meta name="color:scrollbar" content="#777"/>
  32. --
  33. 4) SCROLL DOWN TO YOUR DESCRIPTION CODE. Which should be either .description, .desc, #description, OR #desc
  34. EXAMPLE::
  35.  
  36. .description{
  37. width:220px;
  38. margin-left:-2px;
  39. margin-top:4px;
  40. padding:2px;
  41. border:1px solid #ddd;
  42. text-align:left;
  43. height:auto;
  44. font-size:8px;
  45. text-transform:uppercase;
  46. background-color:#fafafa;
  47. }
  48.  
  49. 5) IF THE HEIGHT SAYS "AUTO" CHANGE IT. To a number between 20-40. Which is Four Lines MAX.
  50. 6) ADD THE FOLLOWING CODE BEFORE THE }::
  51.  
  52. overflow:auto;
  53.  
  54. -------
  55.  
  56. That's it! All you needed to do was make sure you had the Scrollbar Code and Overflow:auto.
  57. If any of you need help width more HTML stuff feel free to message me! ;D
  58.  
  59.  
  60. ; JADExx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement