Why auto doesn't work for div?

Hello everyone.

I cannot make my div block be the same width as content width inside.
Auto doesn’t work. I can only set the value in px, percentage, etc.

I’m trying to make “pill-container” class width auto. It doesn’t apply. Why?


Here is my site Read-Only: Webflow - Artyom's Fresh Site

  1. You’ll need to change the setting on the parent container “information-block” which currently has alignment “stretch” which forces the child to span its width

  2. If elements need flow inline with “pill-container”, you’ll need to change its display property to “inline-flex”