in the html i cant"t link the javascript and css Same Time | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

in the html i cant"t link the javascript and css Same Time

in the HTML: <div id ="start_btn"> <button class="btn-12"><span>イ𝐢𝐦𝐞 𝐟𝐨𝐫 𝐭𝐡𝐞 𝑔𝐚𝐦ҽ.</span><span>Click Me</span></button> </div> in the CSS: .btn-12{ align-items: center; position: relative; ....................... More in the javascript: start_btn.onclick = () => { info_box.classList.add("activeInfo"); //show info box }; ouput Result : button was hidden but i change like this "start_btn1" and btn-12 or "btn-12h" and "start_btn" it Will Worked How To Fix above Code

17th Jan 2023, 5:07 PM
BASKARAN VINOJAN
BASKARAN VINOJAN - avatar
1 Answer
+ 3
Please attach a code bit link instead of raw text. I'm particularly interested in the ............More block Where something might be the cause ...
17th Jan 2023, 5:28 PM
Ipang