Skip to content
Loading
  
  •            
  •    
  •  CSS file
    1. .my-custom-scrollbar {  
    2.         position: relative;  
    3.         width: 500px;  
    4.         height: 500px;  
    5.         overflow: auto;  
    6.     }  
    7.       
    8.     .caption {  
    9.         color: red;  
    10.         font-weight: bold;  
    11.     }   
     
    But the positon where user has clicked and position where text is printed are not matching. It does not print text at exact position where user has clicked. So how to pirnt text on image? Also how to save this image with text; at given path? Thank you in advance.
  • Farhan Ahmed
    0
    https://codepen.io/ahebler/pen/KzyQBZ?__cf_chl_jschl_tk__=7c927f38a2134834aa83b86d50da351ccb9a0b39-1595009265-0-AXcIlUbRPKSSUy_D7-cXdMupw0sr1IPBnCi2UlaLZNEAlT_gzg2AGKWrK8DywzfFER73drrqPQCq0Iiv4dYEa-u74zi_wIeHpIEAxBJpMRQf4iRhIdXWPSUVinxS0TmbGByy_pJT3GWFN7Os92FoKYqkkNR7LRhTFVVh5oZcEPAsEzo50TbrT7NFZWZogpeZbumT7qO72OQWLmK6pMvrmz1WW1kpHZ8z1bGBjOn4hUfteTNMTB7y4gU1rpw_zkmOkZBq8XWPWXXCDk6ssNUcDm38-NBLIsd5Y1SXg-X5319HvUHMPtI7H7rmVeWw4fupjUHxJ4kezllQpSn_w5V1e6tg4eLdHhRA38zViifiyRdM
     
     
    https://www.geeksforgeeks.org/how-to-create-an-image-element-dynamically-using-javascript/ 
    0