Advertisement
dullcevita

fixed pop-ups

May 1st, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. change these sections:
  2.  
  3. .popup_block{
  4. display: none; /*--hidden by default--*/
  5. background: transparent;
  6. padding: 20px;
  7. float: left;
  8. position: fixed;
  9. top:50%;
  10. left:50%;
  11. z-index: 99999;
  12. height:347px;
  13. }
  14.  
  15. .poptext {
  16. margin-left:auto;
  17. margin-right:auto;
  18. margin-top:-15px;
  19. width:250px;
  20. padding:10px;
  21. margin-left:170px;
  22. height:450px;
  23. overflow:auto;
  24. text-align:justify;
  25. color:{color:background};
  26. background-color:#dddddd;
  27. }
  28.  
  29. to THIS:
  30.  
  31. .popup_block{
  32. display: none;
  33. background: transparent;
  34. padding: 20px;
  35. position: absolute;
  36. z-index: 999999;
  37. height:100px;
  38. }
  39.  
  40. /*-- you delete the top and left sections from popup_block
  41. and you change the margin-left and margin-top values in poptext
  42. to whatever you need it to be to line up with your posts
  43. also change the background color to suit your style --*/
  44.  
  45. .poptext {
  46. margin-left:0px;
  47. margin-top:0px;
  48. width:272px;
  49. padding:10px;
  50. height:331px;
  51. overflow:auto;
  52. text-align:justify;
  53. background-color:COLOR;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement