1e41f4b71Sopenharmony_ci# Basic Concepts<a name="EN-US_TOPIC_0000001127284864"></a> 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciGrid components layout elements in a grid system which is built based on **<grid-container\>**, **<grid-row\>**, and **<grid-col\>** containers. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ciAs a layout-auxiliary positioning tool, the grid system plays an essential role in graphic design, website design, and the UI design of mobile devices. The grid system offers the following advantages for mobile devices: 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci1. Provides rules for layout design and resolves issues of dynamic layout across devices with different sizes. 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci2. Provides a unified positioning method for the system to ensure layout consistency among modules on different devices. 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci3. Provides a flexible spacing adjustment method for applications to keep up with layout in special scenarios. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci## Concepts<a name="section1429110563714"></a> 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ciA column system contains of three attributes: margins, gutters, and columns. 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci1. **Margin** 19e41f4b71Sopenharmony_ci 20e41f4b71Sopenharmony_ci Margins are used to control the distances between elements and edges of a screen. You can define different margins based on the screen sizes to serve as the unified specifications for breakpoints. 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci2. **Gutter** 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci Gutters are used to control the distances between elements. You can define different gutter values based on the screen sizes to serve as the unified specifications for breakpoints. To achieve a good visual effect, set the values of gutters not greater than the margins values. 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci3. **Column** 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci Columns are used for positioning in the layout. The positioning for different screen sizes is determined by the numbers of columns. The column width is automatically calculated based on the actual device width and the number of columns when the margins and clutters meet the specifications.  29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci **Breakpoint System** 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ci The grid system defines the mapping between the number of columns and the width of devices, which is known as the rules in the breakpoint system. 33e41f4b71Sopenharmony_ci 34e41f4b71Sopenharmony_ci The grid system uses the horizontal virtual pixels \(vps\) to determine the breakpoints. Different devices display different numbers of columns based on their horizontal vps within different breakpoint ranges. 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ci **xs**: 2 columns for 0 < horizontal vp < 320 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci **sm**: 4 columns for 320 ≤ horizontal vp < 600 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ci **md**: 8 columns for 600 ≤ horizontal vp < 840 41e41f4b71Sopenharmony_ci 42e41f4b71Sopenharmony_ci **lg**: 12 columns for 840 ≤ horizontal vp 43e41f4b71Sopenharmony_ci 44