Please I need help on why the "reset" button is not restoring the box1 and box2 after I removed them. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please I need help on why the "reset" button is not restoring the box1 and box2 after I removed them.

My "reset" is not working. I clicked on it in order to show box1 and box2 that I removed using the "remove" button. https://code.sololearn.com/WPulraLaF7YV/?ref=app

31st Aug 2021, 10:06 PM
Okafor Okwuchukwu Charisma
Okafor Okwuchukwu Charisma - avatar
4 Answers
+ 1
I can't say anything about show, but if you replace show with inline everything will work. If you need a block type, replace inline with block, or inline-block.
31st Aug 2021, 10:16 PM
Solo
Solo - avatar
+ 1
@Vasiliy, thank you so much. I so much appreciate your contribution. Your suggestion works perfectly.
31st Aug 2021, 10:33 PM
Okafor Okwuchukwu Charisma
Okafor Okwuchukwu Charisma - avatar
+ 1
I was glad to help. ☺️ I would also draw your attention to the size of the div in css, you specified width: 100%, thereby shifting it to the right, since you have margin: 5px and padding: 5px. The result is width = 100% + 5px * 2 + 5px * 2 You can calculate the length you need yourself, either use the calc() function — — "width: calc(100% - 20px);", or just put "with: auto;" and see what happens.
31st Aug 2021, 11:00 PM
Solo
Solo - avatar
+ 1
@Vasiliy, wow! So cute. Thank you so much for the correction on my css, I never thought of that. I have marked your answer as the best answer.
31st Aug 2021, 11:50 PM
Okafor Okwuchukwu Charisma
Okafor Okwuchukwu Charisma - avatar