My code is:
p { position: relative; background-color: blue; } p:before { content: \'\'; position: absolute; left:100%; width: 10px;
Add condition in Click event to restrict the clickable area .
$('#thing').click(function(e) { if (e.clientX > $(this).offset().left + 90 && e.clientY < $(this).offset().top + 10) { // action when clicking on after-element // your code here } });