Comments on: What if you used Container Units for… everything? https://frontendmasters.com/blog/what-if-you-used-container-units-for-everything/ Helping Your Journey to Senior Developer Mon, 02 Sep 2024 07:42:53 +0000 hourly 1 https://wordpress.org/?v=6.8.3 By: yaireo https://frontendmasters.com/blog/what-if-you-used-container-units-for-everything/#comment-10672 Mon, 02 Sep 2024 07:42:53 +0000 https://frontendmasters.com/blog/?p=3108#comment-10672 I was also thinking this, just like I always have been advocating for using em units over powerless fixed units precisely because of their inheritance powers which gives flexibility.

One huge problem with elements with container property is they loose the ability to size themselves according to their contents, which is a huge blocker for some designs.

I just had a case like that last week and with deep sadness I had to delete the container property and resort to javascript resize-observer instead.

]]>