Questions tagged [grid-system]

A grid is a structure, with a very rich history used to align negative space in your design. Using a grid makes content appear to flow naturally on your page, and allows you to quickly adjust layouts without assigning specific sizes directly to content elements, letting you rapidly prototype and design your page.

About grid-system:

The main idea behind grid-based designs is a solid visual and structural balance of web-sites you can create with them. Sophisticated layout structures offer more flexibility and enhance the visual experience of visitors. In fact, users can easier follow the consistency of the page, while developers can update the layout in a well thought-out, consistent way. However, it’s quite hard to find your way through all the theory behind grid systems: it isn’t easy at all. Some important notions and related key-facts can help to learn basics and keep essential techniques in mind.

enter image description here

Grid system is composed of some key concepts as follows

  • container
  • Row
  • Column
  • gutter

Container

Container is acts like a wrapper to the row. Container holds certain width properties either fixed or fluid (100%) on the basis of design requirement.

enter image description here

Row

The name only suggest the use and behavior of the component. Row itself is a wrapper to the columns. Multiple rows are possible in an grid system. this is a row level component which holds number of cells (columns). Ideally row width is as equal as Container width.

enter image description here

Columns

This is a cell level component, usually a grid system is defied on the basis of number of columns, for eg 12-Column grid, 16-Columnn grid etc.

Columns are vertical cells which are placed within a row, width of total columns and total number of gutter should take the entire width of row.

enter image description here

Gutter

Gutter is a space between two columns, ideally it separates two columns with specified width in the grid system. gutter are less than one with total number of column. for eg. if there are 12 column in the grid system then 11 gutter will be there in between the 12 columns.

enter image description here

148 questions
207
votes
2 answers

Nested rows with bootstrap grid system?

I want 1 larger image with 4 smaller images in a 2x2 format like this: My initial thought was to house everything in one row. Then create two columns, and, in the second column, create two rows and two columns to create the 1x1 and 2x2 effect.…
Greg
  • 2,393
  • 2
  • 12
  • 9
122
votes
7 answers

Material UI and Grid system

I'm playing a little bit with Material-UI. Are there any options for creating a grid layout (like in Bootstrap)? If not, what is the way to add this functionality? There is a GridList component but I guess it has some different purpose.
kharandziuk
  • 9,273
  • 9
  • 51
  • 94
58
votes
10 answers

Clear Rows When Doing Multi-responsive Columns - Bootstrap

That title might not be very accurate but here is the situation: As you can see in the HTML, The grid system goes from 4 images on xl screens to 3 on lg screens to 2 on anything less. I am trying to get it to display properly - the proper amount…
karns
  • 4,469
  • 5
  • 24
  • 45
51
votes
10 answers

using container-fluid within bootstrap cause horizontal scrollbar

Here is a simple example:
DUMMY CONTENT
Demo in Fiddle When I see the result in browser I get a horizontal scrollbar. Why is this happening?…
agis
  • 1,709
  • 9
  • 32
  • 63
33
votes
15 answers

zurb foundation is it possible to have full row width

I'm using foundation 3 to build a responsive website but I want to have the Footer and Navigation background width to occupy the entire width? I have named my rows as class="row navigation" class="row footer" I tried looking for how to fix this…
Chou One
  • 627
  • 1
  • 12
  • 21
32
votes
1 answer

Bootstrap Nested Grid Systems Best Practices

I'm trying to create a site using bootstrap and no external css. It seems I can achieve many of my formatting goals using nested grid systems. e.x.
Ben Pearce
  • 6,162
  • 16
  • 64
  • 122
28
votes
3 answers

How to adjust gutter in Bootstrap 3 grid system?

The new Bootstrap 3 grid system is great. It's more powerful for responsive design at all screen sizes, and much easier for nested. But I have one issue I could not figure out. How do I add precise gap between the columns? Say I have container…
Darren Li
  • 381
  • 1
  • 3
  • 6
23
votes
1 answer

How to use Bootstrap 3 grid system with table component?

I have started a migration to grid system using Bootstrap 3, but the examples in the documentation are all using DIVs: http://getbootstrap.com/css/#grid I made a somewhat redundant code that mixes the DIV classes with TABLE…
11
votes
4 answers

CSS Flex Box: How to vertically align "flex items" to middle without losing flex item height?

Currently my "flex" items look like this (vertically aligned: top)... _____________________________________ 1 _____________________________________ 2 _____________________________________ 3 _____________________________________ …
Oneezy
  • 4,120
  • 5
  • 35
  • 69
8
votes
4 answers

Is there any full width supporting CSS Grid System?

Is there any CSS grid system that supports full viewport width? Most Grid System seem to just intend a width of 960px up to 1140px. This is the most deployed width for a normal User(as the most people are using 1280px × 1024px). My purpose is to…
Jannis M
  • 745
  • 1
  • 4
  • 15
8
votes
2 answers

It is necessary to fill all 12 columns of a row of bootstrap's grid system?

It is necessary to fill all 12 columns of a row? Example 1 - only 2 columns from a total 12 of the row are declared:
...
Example 2 - the unused…
Nelly Junior
  • 436
  • 1
  • 4
  • 28
7
votes
2 answers

How to display card components in loop with Vuetify grid system?

Note: Using Vue.js and Vuetify.js for functionality and styling I have card components dynamically generated with v-for, and I want to display them in 1/3/4 card(s) in a row depending on screen size (sm/md/lg). When I place them in Vuetify's grid…
stormynpip
  • 352
  • 4
  • 6
  • 11
6
votes
0 answers

How to offset flex item?

I'm developing a pure flexbox grid framework called flexboxes. I'm looking to implement a way to offset flex items by a particular number of grid columns in any flex-direction. This is possible with percentage margin but can it be done in a simpler…
ryanve
  • 43,188
  • 26
  • 86
  • 125
6
votes
2 answers

Do you use a grid system when designing a web page?

I'm trying to figure out why I would use a grid system. I have read some but I just don't get it. I'm used to just putting stuff in html on a page and beind done with it but I have a new project and would like to use a grid because apparently it…
johnny
  • 18,093
  • 48
  • 144
  • 235
5
votes
4 answers

children not staying inside parent divs

Fiddle: https://jsfiddle.net/uatzust3/ Here is the fiddle for my problem, you'll observe that the children are not staying inside the parent div card and also I want the divs to take full width of parent which they are not taking. Also, where should…
user7244979
  • 61
  • 1
  • 1
  • 4
1
2 3
9 10