Forums

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

Home Forums CSS Align divs in rows

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #208946
    OrangeTree
    Participant

    Hello :-)!

    I would like align divs like this:

    |DIV 1| |DIV 3|
    |DIV 2| |DIV 4|

    So, I have code:

    <div id="parent">
    <div id="div1"></div>
    <div id="div2"></div>
    <div id="div3"></div>
    <div id="div4"></div>
    </div>

    ========================================
    If I use for div1/2/3/5 “float: left” I get:

    |DIV 1| |DIV 2|
    |DIV 3| |DIV 4|

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