I would like to know how to align a canvas element to the absolute top ( 0 , 0 ) of the web page.
I have tried: margin: 0; padding: 0px; but no good.
There’s always some white space at the top.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Make sure your “body” and “html” have no padding:
Then make sure the canvas is either “naturally” positioned at the top, or else is absolutely positioned.