@CoderHaqiim
Posted
Congratulations on completing your challenge. I love the simplicity of your code (the js part) also the use of ’this' keyword. However, the page is not responsive on mobile. Also, you can add to your challenge by closing the already opened answer when you open a new one. Cheers! Happy coding!
Marked as helpful
@s-zx
Posted
@CoderHaqiim Thanks for your comment. I don't know how to make my page be responsive on mobile.
@CoderHaqiim
Posted
You have to use media queries. Read up about them. A media query in css is used to set specific style instructions to be carried out at different screen width. e.g
@ media only screen and (min-width:376px){
Some style here..
}
This specifies styles to be used for the page, but the minimum width for that to happen is 376px. That means when the screen width is less than 376px in disregards the code in this block and falls back to default. You should read about the rules. Also learn how to create external JavaScript and CSS files if you don't, as it's better to have them all in different files. Here is a good resource on media queries w3schools mediaquery Cheers! Happy coding!
Marked as helpful
@s-zx
Posted
@CoderHaqiim Really appreciate your reply, I will learn this stuff later. Thank you so much.