Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Make HTML5 Canvas fill the whole page
To make canvas fill the whole page, you need to be 100% in width and height of the page.
* {
margin: 0;
padding: 0;
}
body, html {
height:100%;
}
#canvas {
position:absolute;
height:100%; width:100%;
} Advertisements
