GithubHelp home page GithubHelp logo

Comments (2)

svensigmond avatar svensigmond commented on July 18, 2024

Hi Jelmer,

This behaviour is as intended. It is implied (but maybe not documented) that the grid is used within a container element that has a left and right padding equal to half the width of the grid gutters.

Imagine a situation where content is placed in a normal grid cell with padding, but underneath it you would like to place a white box with some text and padding. By placing the box in a normal cell, the text content will not be aligned with the text content of the other grid cell.

Using a collapsed cell or cells will allow you to place the box in the gutter, but still have the content of the box align with the rest ofthe content of the page by adding padding equal to the gutter size to the box itself.

I hope this explains the reasoning behind the collapsed option.

Would adding a container solve your problem or are you trying to do something different? Maybe you can create a jsfiddle / codepen page with your desired result so I can have a closer look at it?

Thanks!

from ezpz-flexbox-grid.

jelmerdemaat avatar jelmerdemaat commented on July 18, 2024

Sorry for not responding earlier. Thanks for explaining. I understand the reasoning but I feel like there is something missing here. When I get to a test case some day I'll post it here.

from ezpz-flexbox-grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.