display: inline-flex
display: inline-flex is a CSS property in the Flexbox category. Creates an inline-level flex container. Children become flex items. The syntax is display: inline-flex. A typical example: display: inline-flex; It is commonly applied to markup such as <div class="demo">Sample</div> A close relative is flex, which flexible box layout properties for one-dimensional arrangements. A close relative is flex-direction, which flexible box layout properties for one-dimensional arrangements. A close relative is flex-wrap, which flexible box layout properties for one-dimensional arrangements. More about this category: CSS Flexbox properties for one-dimensional layouts and alignment. Related Flexbox entries: flex, flex-direction, flex-wrap, flex-flow, justify-content, align-items, align-content, align-self. This page is part of the free CSS Reference documentation covering 841+ properties, selectors, functions, and at-rules, each with syntax, values, examples, and browser support. You can look up any other entry from the search page or return to the CSS Reference homepage.