I noticed that when the window sizes is brought down to very small corner window you lose access to your nav-bar. I had the same problem in the beginning. Here is my code with my solution. My tech doc
You are using a sophisticated and beautiful color scheme. I like the fonts but the font sizes are somewhat problematic. The font size for your code is bigger than the font size you use for explanations as if they’re just footnotes. And your main title is smaller than the one beneath it.
I also like the little visual cues like that red border and the ovarall layout of your page.
Your code is not indented! You can fix this easily this using pre-tags.
I would also refine the @media rules. On a phone, the page is not centered and the nav partly overlaps the text beneath. You could use a fixed height and overflow scroll if necessary. I’ve done this project in the past and it took quite a while to get all that working correctly. It’s a lot of fiddling with the code.
As you can see when the screen is snapped to the corner, you lose the ability to access the last 3 links in your content list. In mine, I used a media call to adjust it.
Thank you for your feedback, I appreciate it!
Yes, the font size is not consistent on the page, I’ll change that.
Indeed, the code is not indented.
At the beginning I tried something like the following (as I wanted the code to display as a list), but I wasn’t sure it’s the correct way :
Then I saw on the sample page the “white-space” property was used and all codes were nested inside a single “code” tag. I tried it, but I noticed that I couldn’t indent the code properly as a result.
I’ll try with the pre-tags, thank you I didn’t know about these.
Regarding the layout, it’s really strange because I get two different results whether I use Chrome or Firefox. (see below).
On chrome it’s centred.
It’s a problem. Firefox and chrome don’t implement the dom identically. You can spend hours and hours tweaking the settings. It just never ends, so I advise to leave it for a while and then get back to it later on with fresh eyes.
I only use the ‘toggle device toolbar’ in chrome. If you open the dev tools you see this icon of two phones to the left of ‘elements console sources’. Click on it and then you can choose different kinds of devices that frame your webpage. (at the top above your webpage there’s a toolbar and there’s another hidden on (three dots) that shows the boundaries of the @media rules. Firefox has something similar but chrome’s is still the best. Still, these are always an approximation so the only way to really know everything works the way you want it, is to look a at webpage on different devices. I use all my friends’ phones and laptops for this. There are also paying websites that use virtual machines (I believe) and I suspect they offer good quality but I haven’t used them yet.
Since copy/paste from codepen you can ignore the first warning and first two errors.
There are HTML coding errors you should address.
Main thing to point out is that you’re not nesting code within pre. This is the error message(s) you see in the W3C validator. The way you want to do it is to nest multi-line <code> snippets in <pre> </pre> tags in HTML to preserve whitespace and line breaks. Or you could do