<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <style> body { height: 2000px; /* the tooltip should work after page scroll too */ } .tooltip { position: fixed; z-index: 100; padding: 10px 20px; border: 1px solid #b3c9ce; border-radius: 4px; text-align: center; font: italic 14px/1.3 sans-serif; color: #333; background: #fff; box-shadow: 3px 3px 3px rgba(0, 0, 0, .3); } #house { margin-top: 50px; width: 400px; border: 1px solid brown; } #roof { width: 0; height: 0; border-left: 200px solid transparent; border-right: 200px solid transparent; border-bottom: 20px solid brown; margin-top: -20px; } p { text-align: justify; margin: 10px 3px; } </style> </head> <body> <div data-tooltip="Here