![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)
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
![CSS 102: Inline vs. Inline-Block, Block Formatting Context, Solving Browser-Specific Styling Issues | Medium CSS 102: Inline vs. Inline-Block, Block Formatting Context, Solving Browser-Specific Styling Issues | Medium](https://miro.medium.com/max/731/1*Ab2FsBXuCzEMsBdWnH7tjQ.png)
CSS 102: Inline vs. Inline-Block, Block Formatting Context, Solving Browser-Specific Styling Issues | Medium
![CSS Displays and Positioning 101 — Inline-blocks and Floats | by Rutger McKenna | Analytics Vidhya | Medium CSS Displays and Positioning 101 — Inline-blocks and Floats | by Rutger McKenna | Analytics Vidhya | Medium](https://miro.medium.com/max/1400/1*vVcDnaVm_gY-J0pNXdHoAg.png)
CSS Displays and Positioning 101 — Inline-blocks and Floats | by Rutger McKenna | Analytics Vidhya | Medium
![Using Inline-Block To Provide Consistent Padding And Element Width Inside An Overflow Container In CSS Using Inline-Block To Provide Consistent Padding And Element Width Inside An Overflow Container In CSS](https://bennadel-cdn.com/resources/uploads/2020/overflow-wrapper-inline-block-width-padding-css.gif)