Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Edward campbell malan van wyk
6,403 PointsButton position
Hi,
I have a div with 9 buttons in side and they make up a grid of 3x3. Now when the buttons are clicked the text on the button changes to what i want it to. This all works fine but as soon as i click a button the text appears but the button moves down a few pixels and only resets itself when all buttons in a row are clicked.
Can anyone explain why a button would move if you manually change the text with a function?
TIA
1 Answer
Aurelian Spodarec
10,801 PointsCode please, if you can put it on codepen.io