How to do full width in <canvas> element?
RixTheTyrunt

I got full width in a <div> object, but now, the same style ( in the style attribute ) , doesn't work in a <canvas> object. How to fix it so that the right will have -8px away from the right side. So, how to do that?

You are viewing a single comment. View All
Answered by sedated [earned 5 cycles]
View Answer
Coder100

you can do this with css or js.

CSS

js

this method will only change one of the canvases, the first canvas.

RixTheTyrunt

Sorry, I know your answer is same, but @sedated's code is a bit easier to understand, yours is a confusing