
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
How to completely fill web page with HTML canvas?
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%; }
- Related Articles
- HTML canvas fill() Method
- How to make the web page height to fit screen height with HTML?
- Make HTML5 Canvas fill the whole page
- Adding YouTube videos on an HTML web page
- How do I redirect my web page with JavaScript?
- Retrofit existing web page with mobile CSS
- Save a Web Page with Python Selenium
- How to add background music to your web page?
- How to add Google Charts to your web page?
- Center pagination on a web page with CSS
- How to make page links in HTML Page?
- How to use Google Fonts on your web page?
- How to automatically redirect a Web Page to another URL?
- How to save HTML Canvas as an Image with canvas.toDataURL()?
- Creating ‘Copy to Clipboard’ feature on a web page with JavaScript

Advertisements