Linked Questions
157 questions linked to/from Make a div span two rows in a grid
19 votes
3 answers
46k views
Flexbox: Two elements on top of each other in flex-direction: row [duplicate]
I am trying to achieve the following: My first attempt was to use a helper div (green): JSFiddle What I could do here, is using JavaScript to move the puple and orange elements out of the helper on ...
14 votes
2 answers
9k views
Left column and stacked right column using flexbox CSS [duplicate]
On large screens, I'd like to have a column on the left, and another column on the right that has 2 stacked boxes. On small screens, these columns should stack into a single column. However, the ...
5 votes
3 answers
8k views
How do I make flex items fit the height of two rows? [duplicate]
I am trying to make a special in a row of flexboxes stretch to be the height of two rows. Here is what I am trying to achieve: What I want. But here is my current result: Result. I think I have to ...
4 votes
2 answers
13k views
How to set two directions for flex-box css? [duplicate]
Can I make this flex-box direction using 1 flex container and 4 flex items ----- ----- ----- | 1 | | | | | ----- | 3 | | 4 | ----- | | | | | 2 | | | | | ----- ----- -----
4 votes
3 answers
3k views
A flexbox grid of two flex items next to one [duplicate]
I am trying to have one div on the left and two on the right. The bottomright should always be below the topRight div. The topRight is the only div with a variable height. I am currently trying to ...
2 votes
4 answers
8k views
CSS Flexbox float elements [duplicate]
I'm trying to float two elements at the right of a "figure" element using flex but it end up floating just div1 at the right of figure and div2 is moved bellow, if I make div1 and div2 narrow enough, ...
1 vote
1 answer
7k views
CSS Flexbox – First row with 1 item, second row with 2 items [duplicate]
What i am trying to achieve is this: All of the 3 items are on the same level. The first one has some additional css-classes. Codewise it is not possible to put a wrapper around the two items on the ...
10 votes
1 answer
19k views
Responsive tile layout with flexbox [duplicate]
I want to create a tile layout (similiar to the metro style tile layout or what it's called of Windows 8). So I have some tiles/boxes, some are quadratic, some can be twice the sice and quadratic and ...
2 votes
1 answer
4k views
how to make grid css layout with 3 items and 2 columns [duplicate]
I have three items that I would like to layout in 2 columns. Item 1 is taller than Item 2 and 3. Here is my css. <div class="container"> <div class="item1">hi there&...
4 votes
3 answers
693 views
In a flexbox grid, how do I prevent the first row from pushing down the second? [duplicate]
I have a flex design that looks kinda like this: .columns { flex-wrap: wrap; display: flex; } .column { display: block; } .column.is-8 { flex: none; width: 66.66667%; } .column.is-4 ...
5 votes
1 answer
3k views
Flexbox cell that spans 2 columns AND 2 rows [duplicate]
I'm wondering if this can be done with just flexbox or if I need to incorporate grid features as well. I'm attempting to have specific cells span multiple rows AND columns. Im my unique case, its just ...
3 votes
1 answer
2k views
Positioning flex items on top of each other in grid without wrapping them [duplicate]
I have the following layout using flexbox: I want to have the div containing 2 on the right hand side, and the Team and Scorers should make up the space to the left of it. Required layout: It's the ...
2 votes
2 answers
3k views
Flexbox wrap to next line with available space [duplicate]
Using Flexbox I can not seem to make a div wrap to a new line without having it break with previous block content. I made a codepen to explain: .container { left: 0; right: 0; margin: ...
2 votes
1 answer
1k views
Flexbox grid with multiple size flex items [duplicate]
Is it possible to specifically do this to div elements: <span class="wrap"> <div></div> <div></div> <div class="big"></div> <div></div> &...
2 votes
2 answers
2k views
Flexbox - Rows and columns side by side [duplicate]
What I am trying to achieve is this: . However, I'm having trouble to do the last block/rectangle(red). Because it doesn't belong to the rows I created for the other blocks. I have tried to float ...