Button moves when I click? [Answered] | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 3

Button moves when I click? [Answered]

so I am trying to make a tic-tac-toe game, and when I was setting up the buttons, the buttons seem to move in a different position. What do I do? Heres the full code: https://code.sololearn.com/WhGj559thn65/#html

1st Feb 2019, 5:05 AM
LegalizedPotato
6 Respuestas
+ 5
CSS line 3: should be font-size: 15px; not font-size: 15; CSS line 15 and CSS line 16: should be 115px not 115 And in the HTML, you should put   for the content of every button.
1st Feb 2019, 5:51 AM
Rowsej
Rowsej - avatar
+ 4
HTML entities are basically characters. A HTML entity starts with & and ends with ;.   means “non-breaking space”, which is basically a space, but doesn’t wrap. Because when the buttons suddenly get new content, some styling changes. A space would fill the gap so nothing will move, but a regular space would wrap. Something like that, I’m not exactly sure.
1st Feb 2019, 6:24 AM
Rowsej
Rowsej - avatar
+ 3
Can you please show your full code (CSS + HTML) so we can see the problem?
1st Feb 2019, 5:29 AM
Rowsej
Rowsej - avatar
+ 2
I put the link above!
1st Feb 2019, 5:38 AM
LegalizedPotato
+ 1
Oh I forgot about the px, what does the &nbsp do?
1st Feb 2019, 5:54 AM
LegalizedPotato
- 1
password and email in js
2nd Feb 2019, 4:50 AM
sebsib yirga