VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-layout-complete-reference/

⇱ Tailwind CSS Layout Complete Reference - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Layout Complete Reference

Last Updated : 26 Jul, 2025

Tailwind CSS is a utility-first CSS framework for rapid custom UI. It is a highly customizable, low-level CSS framework that gives you all of the building blocks that you need. As we know, there are many CSS frameworks but people always choose the fast and easy framework to learn and use in the project. We can make the layout of a very nice page quickly using Tailwind CSS layout.

Tailwind CSS Class

Description

ContainerIt fix the max-width of an element to match the min-width of the breakpoint.
Box SizingIt defines how the user should calculate the total width and height of an element.
DisplayIt defines how the components (div, hyperlink, heading, etc) are going to be placed on the web page.
FloatIt defines the flow of content for controlling the wrapping of content around an element.
ClearIt is used to specify which side of floating elements are not allowed to float.
Object FitIt specifies how an image or video should be resized to fit its content box.
Object PositionIt specifies how an image or video element is positioned with x/y coordinates.
OverflowIt tells whether to clip content or to add scroll bars.
overscroll BehaviorIt sets the behavior of the browser when the boundary of a scrolling area is reached.
PositionIt is used for controlling how an element is positioned in the DOM.
Top/Right/Bottom/LeftThese classes are used to control the alignment of a positioned element.
VisibilityIt is used to specify whether an element is visible or not.
Z-indexIt describes the z-index along the three-dimensional plane.

The below example will give you a brief idea about the Layout of Tailwind CSS:

Example:

Output:

👁 gfgoutput
output


Comment
Article Tags: