Display block
Tailwind CSS Display block
Use responsive display block layout with TW elements. Learn how to put the element on it's own line and fill its parent.
Basic example
When controlling the flow of text, using the CSS property
display: inline
will cause the text inside the element to wrap normally.
While using the property display: inline-block will wrap the element to prevent the text inside from extending beyond its parent.
Lastly, using the property display: block will put the element on it's own line and fill its parent.
While using the property display: inline-block will wrap the element to prevent the text inside from extending beyond its parent.
Lastly, using the property display: block will put the element on it's own line and fill its parent.