I really enjoy taking this challenge and learn alot from it , I will really appreciate any feedback and how i can improve thanks in advance.
Nazmus Sakib
@MNSM92All comments
- @imoyemiSubmitted over 1 year ago@MNSM92Posted over 1 year ago
Congratulation on completing this challenge! You did a lot. But there are a few things to improve. such that, onClick the border countries button should work. and you have the abbreviated name of the countries, you could change it to the actual name of the countries by using "find" method.
1 - @SelormDevSubmitted over 1 year ago
One of the challenges I encountered in my code was preventing text from increasing the height of a
div
. When the text inside thediv
dynamically changes or becomes longer, it causes thediv
to expand vertically, which was problematic for maintaining the desired layout.How do I fix such problem?
@MNSM92Posted over 1 year agodiv { height: 100px; /* Set the desired fixed height / overflow: hidden; / Hide any overflowing content */ }
OR,
div { max-height: 200px; /* Set the maximum allowed height / overflow: auto; / Add scrollbars if needed */ }
1 - @Anish2529Submitted over 1 year ago