I am using the code
<div style="background:url('upload/image1.jpg'); width:300px; height:400px; position:relative;">
<br/>
<div style="position: absolute; top:300px; overflow:hidden; height:100px; width:300px;" id="overlay">This is a sample text</div>
<br/>
</div>
In this i am using an image as the background of a div. And add an ovelay text to the image as in div overlay.
After adding the overlay text i want to save the main div as a new image. How to it ?