Reputation: 1
I have the following code:
<html>
<head>
<title>convas</title>
</head>
<body>
<canvas width="1745" height="569" style="width: 1730px; height: 1680px; position: absolute; z-index: 1"></canvas>
<div id="container">
html elemets (buttons, links)
</div>
</body>
</html>
The canvas is over the div element, but any buttons or links do not works.
Please check my example:
It needs to work the image link with the falling snow over it.
Upvotes: 0
Views: 644
Reputation: 18596
I'm assuming you want to sit the Container over the Canvas?
Float the container and set the Z-Index.
<canvas width="1745" height="569" style="width: 1730px; height: 1680px; position: absolute; z-index: -1; background-color:red;"></canvas>
<div id="container" style="z-index:99 float:left;">
<button />
Upvotes: 1