Advertisement
alicescreed

#40 BG HELP

Jul 16th, 2015
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. Hi there! So you're interested in making a full size sidebar background, are you? It's simple as pie.
  2.  
  3. Copy and paste the code into your HTML editor on tumblr. Press CTRL + F and search for " #sidebar ".
  4.  
  5. You should find this:
  6.  
  7. #sidebar {
  8. position: fixed;
  9. background-repeat: no-repeat;
  10. background-position: bottom right;
  11. background-image: url('{image:sidebarbg}');
  12. width: 405px;
  13. height: 100%;
  14. background-color: {color:sidebarbg};
  15. float:left;
  16. position:fixed;
  17. top:0;
  18. left:0;
  19. z-index:.9;
  20. }
  21.  
  22. So, the simplest way to do this is to dissect the background properties one by one. That will be these two. (Background color won't matter that much if you're planning on using an image anyway, right?)
  23.  
  24. background-repeat: no-repeat;
  25. background-position: bottom right;
  26.  
  27. If you want to repeat your image, simply erase 'no-repeat' and put 'repeat' instead.
  28.  
  29. If you want to change your background position, please visit this link. It'll be better explained there. http://www.w3schools.com/cssref/pr_background-position.asp
  30.  
  31. One thing that I always find is nice to add if you're worried about the height resolution of your sidebar image is this:
  32.  
  33. background-size: cover;
  34.  
  35. Just add that little baby between the {} and you'll be set. This assures that your background image will fit all screens accordingly.
  36.  
  37. Hope this helps!
  38.  
  39. Cheers,
  40. Ana
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement