codingOL

i have no idea if this works

Jan 21st, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.57 KB | None | 0 0
  1. <div id="cboxrules" style="position:relative; margin:0 auto; width: 350px; font-size:0; float:right">
  2.     <div id="cbox_base" style="width: 350px; height: 478px; z-index:0"
  3.         onmouseenter="document.getElementById('rules').style.display='block';"
  4.         onmouseleave="document.getElementById('rules').style.display='none';">
  5.     Your Image Here
  6.     </div>
  7.     <div id="rules" style="position: absolute; top: 0px; left: 0px;width: 350px; height: 478px; background-color: rgba(0,0,0,0.5); z-index:1; overflow-y:auto; display:none;">
  8.     <p style="color:#fff">CBOX RULES HERE</p>
  9.     </div>
  10. </div>
Advertisement
Add Comment
Please, Sign In to add comment