{"id":36496,"date":"2018-12-18T20:08:58","date_gmt":"2018-12-18T20:08:58","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=36496"},"modified":"2018-12-18T20:09:04","modified_gmt":"2018-12-18T20:09:04","slug":"web-design-html-canvas-sizing","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/web-design-html-canvas-sizing\/","title":{"rendered":"Web design: html canvas sizing"},"content":{"rendered":"<h2>Self-tutoring about web design: the tutor mentions a discovery about the html canvas tag.<\/h2>\n<p>In my experience, the dimensions of a canvas area need be given in that tag&#8217;s definition, not as style, but rather just height and width. For example:<\/p>\n<p>&lt;canvas id=&#8221;canvasx&#8221; height=&#8221;500&#8243; width=&#8221;600&#8243;&gt;<\/p>\n<p>Once again, in my experience, height=&#8221;500px&#8221; width=&#8221;600px&#8221; may also be acceptable.<\/p>\n<p>Source:<\/p>\n<p><a href=\"https:\/\/www.w3schools.com\/graphics\/canvas_intro.asp\">w3schools.com<\/a><\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/6085299\/html5-canvas-units\">stackoverflow.com<\/a><\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about web design: the tutor mentions a discovery about the html canvas tag. In my experience, the dimensions of a canvas area need be given in that tag&#8217;s definition, not as style, but rather just height and width. For &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/web-design-html-canvas-sizing\/\"> <span class=\"screen-reader-text\">Web design: html canvas sizing<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[837],"tags":[],"class_list":["post-36496","post","type-post","status-publish","format-standard","hentry","category-web-design"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/36496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=36496"}],"version-history":[{"count":2,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/36496\/revisions"}],"predecessor-version":[{"id":36498,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/36496\/revisions\/36498"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=36496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=36496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=36496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}