@imadvv
Posted
Salam Moahamad!!, Mabrouk completing Your challenge!,
The px
unit is something that gets you started very easily, but it turns into a problem later down the road This article has more details about why you should avoid using px
over author units.
but in general I think is each has his one use case, for controlling Layout and font size I think rem
unit along side with max-width
, and for controlling the width of text ch
units make best option as is relative to character , and for controlling elements inside a component
I usually go with %
, case the component controlled by layout ,and let px
for things like border-width
or some decorative Pseudo-elements
stuff like that.
but over all, Hope this Help! and correct me if am wrong, am in process of learning too,
have a Good Week
Marked as helpful
@mbilal-x
Posted
@imadbg01
Thanks so much Imad.
This really helps. you summarized it all. and can you please share that link to the article again, it's not working. Thanks again