Every day, Bootstrap must learn the grid system (layout) and bootstrap grid layout.
1. Grid System (layout)Bootstrap has a built-in responsive, mobile device-first streaming raster system. With the increase in screen devices or viewports, the system will automatically be divided into up to 12 columns.
Here I call the
CSS Grid layout (GRID) can divide a Web page into rows and columns with simple attributes, use CSS to position and adjust each element in the grid directly, and do not need to be nested in multiple layers to implement a layout, in a nutshell, the
Grid, the real layout artifact. CSS really has the concept of layout after introducing two modules in flex layout and grid layout. The original table layout was not known to be a god horse ghost, and then to float, may also use Abosulte to achieve the page
布局。 In short, to achieve a particularly awkward, to always pay attention to: I write this will not collapse,
CSS Grid layout allows us to build and control custom meshes more flexibly than ever before. Grid layout enables us to divide a Web page into rows and columns with simple properties. It also allows us to use CSS to position and adjust every element in the grid without changi
) defines the width of a page larger than his height, whereas the vertical screen (orientation:landscape) defines the height of a page greater than his width. Now we'll add a new grid layout and some new styles for other page elements. Put these styles in the curly braces of the media query before you: #grid { -ms-grid-columns:150px 25px 1fr; -ms-
We can specify grid columns, rows, and areas in one property using the the grid-template shorthand. { display: grid; height: 100vh; grid-gap: 10px; grid-template-areas: "Nav-1 nav-2 nav-3" "m
number of columns *//* Usage :*/Class="Container_12"> Sidebar"Class="Grid_2"> Sidebar Content"Class="Grid_10"> Main_content"Class="Grid_6 alpha"> Main content Photos"Class="Grid_2"> Photo's Advertisements"Class="Grid_2 Omega"> Advertisement Class="Clear"> Class="Clear">
The above is reproduced from it beigua
Link address:Http://imleeo.com/special-series/960-grid-system-introduction.html
First, you need to l
(min-width:600px) { nav { float:left; width:25%; } Section { margin-left:25%}} @media the screen and (max-width:599px) { nav li { display:inline; }}
View Online
Now our layout is great on the mobile browser as well. Here are some famous sites that also use media queries . You can also learn more about media queries in the MDN document .
Friendly Tips
After using meta vi
Every day, Bootstrap must learn about the grid system. The editor is also unfamiliar with the Bootstrap grid system (layout). I would like to share this article. If you are interested, please refer to it.
1. Grid System (layout)Bootstrap has a built-in responsive, mobile device-first streaming raster system. With the i
This article mainly introduces the CSS grid layout of the sample code, I hope to let you master more CSS skills.
Browser compatibility
You can see that the CSS grid layout is supported from Safari 10.1, Firefox, Chrome 60,edge 15.
Grid
Learn extjs5 with me (17 -- select the Grid amount field unit MVVM mode)Learn extjs5 with me (17 -- select the Grid amount field unit MVVM mode)This section converts the amount unit of the amount field in the Grid. The conversion pipeline uses the MVVM feature, which is simi
Learn extjs5 with me (21 -- Multi-list solution of the module Grid), extjs521 --Learn extjs5 with me (21 -- Multi-list solution of the module Grid)For a module with many fields, displaying all fields in a grid will be very bloated, and the Field Types of different users vary
I believe that everyone is more familiar with the flex layout, the recent study of the wave grid layout, although the compatibility is not too high, the application is not too common, but the function is very powerful. The future should be grid+flex for the mainstream, grid is a two-dimensional layout, very flexible, suitable for the overall structure, and Flex i
Learn extjs5 with me (21 -- Multi-list solution of the module Grid)Learn extjs5 with me (21 -- Multi-list solution of the module Grid)For a module with many fields, displaying all fields in a grid will be very bloated, and the Field Types of different users vary, therefore,
Learn EXTJS5 with me (multi-list scheme for 21--module grid)for a module with many fields to display all the fields in a grid, it becomes bloated, and for different users, the field types they focus on vary, so it is necessary to design multiple scenarios for the list of grids. In the design of this custom system, I have designed this part of the content, in Modu
for Grid-column-start and Grid-column-end, a simple way to define the start and end of a grid project
Grid merging can be achieved using span keywords to make rules more flexible
Use Grid-template-areas to declare a grid ra
Learn Extjs5 with me (17--grid Amount field Unit MVVM mode selection)This section completes the conversion of the amount unit of the Amount field in the grid. The conversion 旰 uses the MVVM feature, which is similar in general to several modes of the Control menu. First set up the file monetary.js under directory App/view/main/menu, which is used to put the amoun
Learn With Me extjs5 (14 -- module field and Grid column Definition [1]), extjs514 --Join me to learn the extjs5 (14 -- module field and Grid column Definition [1]) Section, add module custom fields, and generate model based on these fields. Then define the group and column in the
HTML + CSS style settings-CSS will be used once you learn, css will be used once you learn
HTML + CSS style settings
CSS :( Cascading Style Sheets) cascade Style settings table.
The Dis
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.