Forums

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

Home Forums CSS help me to solve my design

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #238412

    here my code http://codepen.io/anon/pen/wGwzmQ

    my problem, how can i place fourth box just below first box. am i need javascript or no .

    #238415
    Paulie_D
    Member

    You can’t do that with CSS.

    You need Javascript – http://masonry.desandro.com/

    #238416

    can you give me the concept how the javascript work, so i can make it with my own code not with plug-in.

    #238417
    Paulie_D
    Member

    Unfortunately, not….you’ll have to look into that for yourself.

    #238475

    ok, thanks a lot

    #238482
    bearhead
    Participant

    You can fake the masonry look by restructuring your html and grouping the article divs into columns:

    http://codepen.io/kvana/pen/WweVqB

    It’s pretty inflexible though…

    #238486
    Paulie_D
    Member

    You can fake the masonry look by restructuring your html and grouping the article divs into columns:

    Yes..the look but not the actual order…which is the point.

    #238487
    bearhead
    Participant

    Maybe the order is irrelevant for the OP… they didn’t specify? Anyway, I just offered one possible solution which may or may not be good for this use case, but options are always good, right?

    #238538

    I think it was a good idea, but it would be an obstacle if i use to display data from a database, when each box has a different height, maybe there is a column that has a length that is very different from the others,

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