csspoo

Search

Tags

  • Animation 1
  • Hover 2

Feed

RSS2.0
  • 2020-05-01

    Line breaks with display inline block

    Author

    Jens Törnell

    Comments

    Start a discussion

    If you have an inline-block element, it will try to stay on the same line as other inline elements.

    Full page

    It's possible to get around this.

    span {
      float: left;
      clear: both;
    }

    Sources

    • https://stackoverflow.com/a/14831960/148496

    If you like this post, please share it! Tweet this!

  • Write for us
  • Contact us
  • About
  • License
Copyright © 2019

This page uses cookies for Google Analytics.