how to convert div content to canvas

how to convert div content to canvas

how do i convert a div content to a canvas with the full with of the div..