I have no idea how to display navbar on top for mobile browsers (using media query) without mindlessly copy-pasting some googled code. Temporarily I’ve disabled it by display: none; just to pass the test.
Can somebody ELI5 how to do it? I must admit that I have some trouble understanding the concept of media query
The way I would do it is using Flexbox. When the page is on a large screen, just have the default flex-direction. When the page is on a smaller screen, set the flex-direction for column.
Don’t use <br> to force line breaks. Nest multi-line <code> snippets in <pre> </pre> tags in HTML to preserve whitespace and line breaks. Or you could do
Hi, I haven’t had much time lately to work on it but from what I see your advice is brilliant. I’ll post final version when it’s done.
@Roma thanks, I didn’t know that tag existed Maybe you should add one lesson mentioning it to the curriculum? Seems pretty neat to avoid so much repetition I did.
I know the default scrollbar can be a bit ugly but without it, the user really doesn’t know that the area is scrollable. Remember the user may only see the page at the small screen size and not know anything about the page other then what they first see. So from a UX perspective, it really isn’t a good idea to hide it.
You can look into customizing it although cross-browser support isn’t great.