Tailwind CSS Classes

Tailwind CSS class .inline-block

<div class="bg-gray-400 p-2">
  <div class="inline-block bg-teal-400">One</div>
  <div class="inline-block bg-teal-400">Two</div>
</div>

Preview

CSS source

.inline-block {
    display: inline-block;
}

Check .inline-block in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Tailwind CSS classes in Display category

© 2024 Shuffle. All rights reserved.