![Inline-flex and inline not working - HTML & CSS - SitePoint Forums | Web Development & Design Community Inline-flex and inline not working - HTML & CSS - SitePoint Forums | Web Development & Design Community](https://global.discourse-cdn.com/sitepoint/original/3X/2/2/2274a09e0f4861f21683d84dcf8cd0ceb86895c1.png)
Inline-flex and inline not working - HTML & CSS - SitePoint Forums | Web Development & Design Community
![Elad Shechter on Twitter: "🤓 When you need a #CSS 'display: block' element that takes only the content size, you can now use the 'width: fit-content' instead of the 'inline-block' value. And Elad Shechter on Twitter: "🤓 When you need a #CSS 'display: block' element that takes only the content size, you can now use the 'width: fit-content' instead of the 'inline-block' value. And](https://pbs.twimg.com/media/E7ZPZKcWUAMN608.jpg:large)
Elad Shechter on Twitter: "🤓 When you need a #CSS 'display: block' element that takes only the content size, you can now use the 'width: fit-content' instead of the 'inline-block' value. And
![Inline-flex and inline not working - HTML & CSS - SitePoint Forums | Web Development & Design Community Inline-flex and inline not working - HTML & CSS - SitePoint Forums | Web Development & Design Community](https://global.discourse-cdn.com/sitepoint/original/3X/3/d/3d9957a881db758dd940018565cd8d7f77f9f6de.png)
Inline-flex and inline not working - HTML & CSS - SitePoint Forums | Web Development & Design Community
![javascript - Positioning divs with display: inline-block. How to adapt height one after the other? - Stack Overflow javascript - Positioning divs with display: inline-block. How to adapt height one after the other? - Stack Overflow](https://i.stack.imgur.com/iLhLS.png)