word wrap | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

word wrap

why is my word-wrap: nowrap; not working for the text whenever uve completed 50 clicks for the first button https://code.sololearn.com/W4x0iZQZVmv2/?ref=app

2nd Sep 2022, 12:38 AM
Junior
Junior - avatar
15 Answers
+ 2
Your Mom line 31: else if( points1 > 50 && points1 <= 60) {
4th Sep 2022, 4:10 PM
Chris Coder
Chris Coder - avatar
+ 1
You are looking for `white-space: nowrap`. `word-wrap` does not exist in CSS.
2nd Sep 2022, 7:02 AM
Schindlabua
Schindlabua - avatar
+ 1
Your Mom for your if statement you need an else statement. else { document.getElementById( "text" ).innerHTML = ""; }
2nd Sep 2022, 7:39 PM
Chris Coder
Chris Coder - avatar
+ 1
first you have to complete then it will work.
3rd Sep 2022, 4:22 PM
Mahima Bhardwaj
Mahima Bhardwaj - avatar
+ 1
Your Mom That is not a proper audio link.
4th Sep 2022, 8:13 PM
Chris Coder
Chris Coder - avatar
0
Schindlabua do u know for my if statement if(points1 === 50 && points1 <= 75)… the text is not going away for whenever my points are higher than 75
2nd Sep 2022, 3:18 PM
Junior
Junior - avatar
0
this is at line 30 and 49
2nd Sep 2022, 3:19 PM
Junior
Junior - avatar
2nd Sep 2022, 6:15 PM
Junior
Junior - avatar
0
Chris Coder its not working
3rd Sep 2022, 2:44 AM
Junior
Junior - avatar
0
its not working without completing
3rd Sep 2022, 3:16 AM
Abdulmateen Shinwari
Abdulmateen Shinwari - avatar
3rd Sep 2022, 8:09 PM
Junior
Junior - avatar
0
k
3rd Sep 2022, 8:09 PM
Junior
Junior - avatar
0
so im trying to disbale my buttons whenever a player reaches 100 but its not working and idk why
3rd Sep 2022, 10:17 PM
Junior
Junior - avatar
0
Chris Coder do u know why my half way point text is only displayed when one of my points == 50 and not they dont display throught the points 50-60 if that makes sense. You can check my else if statement to see https://code.sololearn.com/WAvOeo9jW04v/?ref=app
4th Sep 2022, 2:54 PM
Junior
Junior - avatar
0
Chris Coder im trying to create an audio file for the game, idk whats wrong i looked at tutoriald but its not working
4th Sep 2022, 8:09 PM
Junior
Junior - avatar