Consider we have a simple div container
inside an html page which has lots of other stuff too.
I am seeking to design a button for users, so when clicked, it returns the screenshot image of only that particular container.
I am currently working inside a django project and wondered maybe there is a pure html solution to this without using python. However in my searches I haven't found anything on python that can help me on this either.
For example the div
looks something like this:
<div class="row" style="height:1200px; overflow-x: hidden;" id="The_chart_that_we_want_its_screenshot"></div>
The id is triggered by a jQuery or ajax code later in the html script which loads a chart based on some data (which is constantly changing) from database. And since every time the user opens that html page, a different chart is shown in that container, this button is needed for the sake of user's reporting needs.
Edit: I have checked all other posts in StackOverFlow. They all work on normal divs. But not on my div, because of the class="row". It seems that this class makes the screenshot blank with a color strip in the right of the image. In other words the screenshot pushes all the content of that container to the left and shows it as a narrow vertical colored strip which off course nothing can be seen from the real thing. Don't know why that is.