2
I have my canvas
on Html5:
<canvas></canvas>
I want the canvas to occupy all available area of the browser, I tried to do as follows:
canvas{
display: block;
width: 100%;
Height: 100%;
border: 1px solid #c33;
}
The Width
is occupying everything, but the Height
does not take up everything. It takes up all the space of the browser?
Puts a reference to html and body tags in css with a 100% height. This should solve the problem
– Lothre1
opa, thanks, solved the problem, just a question: no problem in leaving the
body
andhtml
in thecss
set theheight
?– MeuChapeu
No, there’s no problem :)
– Lothre1