CSS subgrid buggy in Chrome?
I have a css grid with subgrid. If i limit the subgrids height height of the original grid doesn't shrink. This is only in Chrome. Firefox and Safari work as expected. Here is a Codepen of my minimal reproducing code.…
I have a css grid with subgrid. If i limit the subgrids height height of the original grid doesn't shrink. This is only in Chrome. Firefox and Safari work as expected. Here is a Codepen of my minimal reproducing code.…
I'm trying to use grids to display my pictures and make them cover the whole page while not changing aspect ratio. But when I open my page on Firefox or Chrome there's a huge gap on the right side. Disposition…
Let's say I have a container with display: grid. I want to make sure that each column takes up the following widths depending on how many columns there are: If 2 or less, each column takes up 1/2. If greater…
I have a main grid. Its grid items are also containers (container-type: inline-size), which helps with giving them various internal layouts depending on their width. How can I middle align main once it passes a certain width? Both justify-self: center…
This is a CSS grid question, I have a list of elements displayed as a grid. I would like to place the elements with a class of picture-folder in the first column (cell) of every row. Expected output would be…
I'm trying to create a grid that shrinks items before creating new rows. Instead, it always creates new rows and never shrinks items. .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 200px)); justify-content: center; justify-items: center; grid-gap: 2em; } .grid >…
I'm trying to achieve a calculator-like icon layout on a mobile navmenu. The icons should display like on a mobile phone home screen, 3 columns and as many rows as needed for all the list items. Now, if a list…
I want to display data in a table, but tag is not allowing me to do the things I want to. The next best thing is using grid, however I am unable to style columns in a way that suits…
I'm trying to get this result: But the code I have is doing this: .container { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; } .image { grid-row-start: 1; grid-row-end: 4; } h1 { grid-column-start: 2; grid-column-end: 2; } .desc…
Goal I want two divs (title and description) in column 1 with one div (button) in column 2 (see Layout Goal for a visual example using table markup). The button should be vertically aligned to the center of the first…