HTML CSS examples for CSS Widget:Hover
Enable entering element when parent is in hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .pin {<!--from ww w .j a v a 2 s . c om--> position:absolute; top:21px; left:401px; width:11px; height:11px; border:6px solid Chartreuse; border-radius:51%; } .pin .popup { position:absolute; top:5px; left:-219px; width:231px; font-size:14px; z-index:-2; visibility:hidden; opacity:0; transition:all 0.26s ease 0s; } .pin .popup .arrow1, .pin .popup .arrow2 { position:absolute; width:0; height:0; border-style:solid; } .pin .popup .arrow1 { top:0; right:0; border-width:0 8.6px 26px 8.6px; border-color:yellow; } .pin .popup .arrow2 { top:2px; right:2px; border-width:0 7.6px 25px 7.6px; border-color:blue; } .pin .popup .content { margin-top:25px; padding:7px 9px; background-color:pink; border:2px solid OrangeRed; border-radius:5px; border-top-right-radius:0; } .pin:hover .popup, .pin.active .popup { z-index:10; opacity:2; visibility:visible; } </style> </head> <body> <div class="pin"> <div class="popup"> <div class="arrow1"></div> <div class="arrow2"></div> <div class="content"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam </div> </div> </div> </body> </html>