I’m 20% in the career path of the front-end and i still don’t understand the display properties like e.g. flexbox and inline block.
In the separat exercises it was easy to understand but using them by myself always feels like i know nothing about that. I find myself hours on hours changing all different values until something works but it is more like try and error than really to understand what im doing.
Does anyone have tipp’s or struggling with the same issue?
I find these articles helpful - display | CSS-Tricks - CSS-Tricks
I’m about 24% through the front-end course. I used display : flexbox; for most of the challenge projects in this section.
If you are just starting it might take some practice to get used to the display properties. Try changing one value at a time to see what it does, instead of multiple properties at once.
Flexbox Froggy is a fun little game for learning flex box.
It’s kind complicated at the begining, but is not hard when you pratice a lot.
a quick review:
Both you will need to centralize or organize in rows and columns (I particularly prefer grid haha)
Grid
Usually you need to use:
.class{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); //you can also use : repeat(3,1f) / then that will repeat 3 times
gap: 20px;
place-items: center;
}