0
Good, I am now starting HTML5 + Javascript + CSS programming and I have a question that I suppose is basic, but I can’t find an answer. I created an HTML5 canvas and since I wasn’t able to add buttons (created in HTML) to the canvas, I decided to make my own buttons in Javascript. My question is: I wanted to customize the button and as I created it in JS, is there any way for CSS to fetch the JS button instead of HTML?
How so created in JS? dared
appendChild
string?createElement
? CSS always observes HTML, they are in html?– Guilherme Lautert
You can create the button by JS and link a class to it and pass attributes to the class normally, the important thing is to have a class or ID to meet with CSS
– CRAJ