Thereās a minor responsive problem. At certain width, the h1 element of the ācontent-centerā class goes below the navbar.
I may not be super expert in this, but thereās something in your CSS that I donāt get.
So you have a body element that contains a header and about five sections and a footer element. So I consider your body element as the āParent elementā or āFlex containerā and the other sections (including the header and the footer) inside it the āChild elementsā or āFlex itemsā. Right?
I wonder why you are not using the display: flex on the Flex container?
Thanks a lot for your comment and feedback. I will fix the h1 for sure.
Do you mean turn the body element into a flex container and consequently all its children (header, sections, and footer) into flex items? Iāve never seen this approach, not sure if it would work for this layout. But will do some research about it, thanks.
In this case, the body element is not a flex container. Only some of its children are flex containers, so that would help to position the flex items inside them.
You can either turn the body element into a flex container or put all the sections, header, and footer in another parent container. Do some research about nested flexboxes.
Actually, Iām going to make my next project (technical documentation) about the flexbox layout and nested flexbox.
Thanks @Pejman. Yep, I have seen nested flexboxes before but never seen someone using in the body element itself. Actually, it may be a good idea for a technical documentation page since we have to split the width of the whole page only between the table of contents and the content itself and there is no extra elements with different sizes