Hi again @pspi098
I think that @saurabhv749 already guide you in the right direction.
Anyway if you want to really understand how flexbox works I think the last and interactive article Guide to Flexbox by Josh Cameau is really helpful, it worth it!. And also web.dev Learn section is great, easier and shorter to read than MDN and with a lot of good small examples. All sections are great.
When I just start with something I use a lot this rules:
*, *::before, *::after { outline: 1px solid pink; }
to actually visualize all the boxes. Then I can use outline
with a different line width and color in the part I am working on. I use outline
and not usually border
because it is not a part of the box model, so the final layout would be the same after comment those rules.
Also I find really helpful make a HTML squeme or mockup of my general structure before thinking in my design. Something like this is enough for me:
body
div.tribute > section >
h1
ul.year >
li > span.year
div.discography
and so on, note that I use the CSS notation, that way I have the classes and ids there too (probably I will add classes and ids later on, when I already started to think in the CSS).
I even can do a general one with only body
, header
, main > form
, footer
, for example, for a general layout and one for each of the small elements inside and their layout. I find really helpful if I am not working in the same thing the whole day, wich is mostly every time.
Then I can think in the design and make a pencil mockup, for example.
And finally, I start to work with the CSS, part by part, or from general layout to every small piece of it.
Sorry If I am too verbose, I just hope you find something of this useful and somehow it will help you to find your own working and thinking process.
If you cannot make it work just keep posting and we all will try to help you.
Happy coding and keep the good work!
