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

Home Forums CSS Why isn't my h1 or image centered?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #254083

    My image or h1 looks like it’s off-centered by a little bit. Why?


    There is no CSS-layout applied to the columns themselves (they are flex-parents but not flex-children). Because those are not properly centered the title above looks off. Can fix this with flexbox too, with inline-block fallback:

    .container {
      display: flex;
      justify-content: space-between;
      overflow: auto;
    .column {
      display: inline-block;
      width: 33.33333%;
      display: flex;     
      flex-basis: 33.3333%;
      /* stuff */

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