Home >Web Front-end >Bootstrap Tutorial >Why bootstrap has 12 grids

Why bootstrap has 12 grids

藏色散人
藏色散人Original
2019-07-13 11:13:424253browse

Why bootstrap has 12 grids

Bootstrap is a set of open source front-ends for website and web application development (the so-called "front-end" refers to the interface displayed to the end user. The corresponding "back-end" ” is a code running on the server) framework, including HTML, CSS and JavaScript frameworks, providing font typography, forms, buttons, navigation and other various components and Javascript extensions, aiming to make the development of dynamic web pages and web applications more easy.

Why bootstrap is a 12-column grid

Because 12 is the least common multiple of 1, 2, 3, 4, and 6, the 12-column grid system is relatively flexible. Supports dividing a row into 1 column, 2 columns, 3 columns, 4 columns, and 6 columns. If you want to support 5 columns, then the least common multiple of 1, 2, 3, 4, and 5 is 60, and the number 60 is obviously too large for the grid system.

Related recommendations: "bootstrap tutorial"

The above is the detailed content of Why bootstrap has 12 grids. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn