Abdul Jabbar
Abdul Jabbar

Reputation: 2573

Div inside a canvas

i have a div element containing an interactive chart. Now i want to place it inside a canvas (using context or something) is it possible to do that? if yes, then what will be the solution?

Upvotes: 0

Views: 532

Answers (1)

Vivin Paliath
Vivin Paliath

Reputation: 95588

You can't put a div inside a canvas and have it be displayed. It will only be displayed if the browser doesn't recognize the canvas element. There are ways, however, to position the div over the canvas so that the canvas acts as a sort of background to the content.

Upvotes: 1

Related Questions