Forums

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

Home Forums CSS [Solved] Problems stacking div blocks

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #159065
    landysaccount
    Participant

    Hello.

    I’m working on a website and I’m having some problems trying to stack some items right on top of each other. I have a 700px div and inside I would like to have two columns 49% each; I would be displaying articles image and title. I’m floating left each article.

    Images are not fixed height and would like to be 100% the size of the column is in. Now, I would like each article to stack right on the bottom… But, I’m having problems getting to do what I want. Here’s a link to the site: Your text to link here…

    Please guide me to the right direction on how to get this working.

    Note: I don’t what to create two separate columns.

    Thanks.

    #159067
    Mr Bean
    Participant

    First you need to place text and image in one div. For further reading check this http://stackoverflow.com/questions/526035/html-css-positioning-float-bottom

    #159072
    landysaccount
    Participant

    Thanks Mr Bean for answering but, couldn’t find anything helpful there except for display:inline-block which works better than float:left.

    If you see the sample page here you’ll notice in the second section how articles div (with gray background) are aligned.

    Remember, div heights vary and are unknown.

    Thanks in advanced for your time and help.

    #159133
    landysaccount
    Participant

    I had to use Masonry in order to make it work.

    Thanks.

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