Forums

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

Home Forums CSS [Solved] Relying on a line break for formatting inline-block elements.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #191277
    Chris House
    Participant

    Can anyone think of a way to accomplish exactly what I’ve done here, only without using the <br /> tags?

    http://codepen.io/caiman/pen/LEZBwv?editors=110

    You’ll want to view the pen in its own window to see the full intended effect.

    #191278
    jurotek
    Participant

    .left{
    padding: 20px 20px 20px 10020px;
    margin-left: -10000px;
    float:left;
    clear:left;
    }

    .right{
    clear: both;
    float: right;
    padding: 20px 10020px 20px 20px;
    margin-right: -10000px;
    }

    #191279
    Chris House
    Participant

    Yep, that does it. I knew it’d be something incredibly simple. Thanks.

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