Hi, I'm Shamim Hossain
Answer some questions and I will help you to figure out the right CSS unit for your project.
Assuming you are only using these units for web development, not for print media.
%
But if it's 100%, you probably don't need to bother
cqi
If you don't mind trying something that doesn't have the best browser support, you could try `cqi`, which is a container query unit that gets the inline size of it's container. This does mean you need a container through. You can learn more about how it works in this video.