Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS is there a way to get my grid to behave in this order?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #286018
    lucibat
    Participant

    Basically like this?

    And lets say my coding was along these lines. Is there a simply solution I could do without altering the html, and wrapping the first two blocks in a div? I’d like to keep them unwrapped.

    #286020
    Paulie_D
    Member

    Probably simple enough using nth-child and making use of grid-placement.

    What have you tried?

    #286021
    Paulie_D
    Member
    #286023
    lucibat
    Participant

    Wow, thanks so much. It works like a charm! I’ve tried plenty of arrangements, but as a noob, I couldn’t figure out the right one, especially not being familiar with grids. I’d have provided a pen, but wouldn’t even know where to start with this. I was all over the place. Even the grid makers I’d stumble across would have some sort of wrapping going on.

    Is there a way to apply a masonry uffect to it by any chance?
    https://codepen.io/soppysopbat/pen/LvRzEG?editors=1100

    #286028
    Paulie_D
    Member

    No…masonry isn’t possible as such with any CSS Layout method unless the heights of each element are multiple.

    https://stackoverflow.com/questions/44377343/css-only-masonry-layout

    #286046
    lucibat
    Participant

    What do you mean by multiple?
    Also how about a little js? Would it be too complicated?

    #286061
    Paulie_D
    Member

    Read the link…it’s all there

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.