Hi, @meantoes. It's a good solution. Keep coding. I have some suggestions for you.
1 - I see this coding style a lot in others. I don't know why, it's a new style? If you use the basic global reset, everything will be easy for you. To be honest I wrote this comment to other coders and copy them to you because you are in the same situation.
margin: 0;
padding: 0;
box-sizing: border-box;
}
box-sizing: border-box; is so important. This topic is related to the box-model. It is one of the most important topics in CSS. Be sure to understand the fundamentals of CSS. This will make you feel more comfortable. Please check the resources.
Learn CSS Box Model In 8 Minutes
I think you can focus on the fundamentals of CSS and try to solve the problem again and again. It'll improve your coding skills.
2 - Another common problem is not using Flexbox and CSS Grid with all of ability. You touched on the solution with position properties, it's okay for us because we are here as newbies but we don't want to be newbies forever, right... That's why we should push ourselves for different styles. Check your Flexbox and CSS Grid knowledge and try to solve this problem without position properties again. You can check these resources:
This learning process will be hard but if you catch the big picture one time, everything will be easy for you, trust me.
I hope these will help you to improve your perspective. Keep coding. All the best.
Marked as helpful
@meantoes
Posted
Hi, @adonmez04! I'll reply your suggestions one by one. umm yea I do global reset but only for margin😅 because I thought I only needed to reset it and I thought border-box didn't do anything🥲 I'll use your suggestion from now on⭐⭐
for this code I used trial and error method and I'm so done with it...
yup!! I don't wanna be newbie forever🥲 thank you soo much for the resources!⭐⭐ I'm trying to learn grid and flexbox and their properties, but there are just a lot of resources and it made me kinda overwhelmed, so thank you so much⭐🙆🏻♀️
have a nice day☀️