re: How can I set HTML width/height properties to a CSS value? VIEW POST


Probably you can wrap your canvas to div with vh/vw sizes and set canvas height 100% and width 100%. I guess it should work 😁


but that's css, as far as I'm aware:

<htmlElement width="10vw" height="10vh">

isn't fully valid. Could you please show what you were thinking in a codeblock? Thanks. Cheers.

code of conduct - report abuse