My question is about canvas {display:block;} | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

My question is about canvas {display:block;}

WHERE do you insert canvas {display:block;} ? WHY do you have to insert canvas {display:block;} ? HOW do I make the display show ? WHAT will happen if I show it ? Please Help Yours Sincerely Edwin Simnett Pratt <3

15th Dec 2016, 1:06 PM
Edwin Pratt
Edwin Pratt - avatar
2 Answers
+ 5
1. in css or in js:[canvas element].style.display = "block"; 2. to display it but you dont have to. 3. set: display:block; 4. it will be visible in the document.
15th Dec 2016, 1:22 PM
Sjoerd Flameling
Sjoerd Flameling - avatar
+ 2
{display:block;} is a CSS style code , can be used with any tag ex. <div>, <span> etc. it helps in display as a block element in HTML. <canvas> is an element of HTML.
15th Dec 2016, 1:23 PM
Prasenjit Das
Prasenjit Das - avatar