Using grid, How to make first box go one space down with taking one horizontal space

Sorry can’t quite grasp what you are asking? :slight_smile:

Do you want to change the order of the smaller boxes or did you want the second row further away from box1?

Sorry can’t really think what you are trying to do:)

1 Like

xD, Here we go again! I don’t know how to make it more clearer than that.

Here is the drawing:
Box

i want the first box to go down with the horizontal width of one, not two

1 Like

L-shape grid items are not allowed.

1 Like

Why?

It’s specified here that a grid area must be rectangular: https://www.w3.org/TR/css-grid-1/#placement.

While it seems simple to allow text to flow in a non-rectangular area, I guess it’s problematic for other content.

2 Likes

Yes that makes it easier to see what you want. :slight_smile:

As @Archibald said grid can’t do an L shape in the sense that content can flow from the top section and then into the sidebar seamlessly.

You could of course make the sidebar as a separate element to look like the drawing you made but you can’t make content from the top flow into it automatically.

You would need CSS exclusions/ to do this but there is very little browser support (only IE and Edge) and indeed the specs are still in flux after years of talks.

There is one way you could achieve the non rectangular flow and that would be by floating a block so that content wraps around it. However you would lose any explicit grid relationships between the other elements and the text would wrap at the bottom if it stretched that far.

Would content flow in box 1 from the top horizontal part into the side part?
Or would it be separate, Eg: a heading in the top and body text in the side?