1

Here is the result of my work and the code. my case

header {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.title {
  align-self: center;
}
<header>
  <h1 class='title'>center</h1>
  <span class='share'>
        <h6>left!</h6>
    </span>
</header>

I want to center the h1 tag, is it even possible with flex?

web-tiki
  • 99,765
  • 32
  • 217
  • 249
Parham Heidari
  • 316
  • 3
  • 14

1 Answers1

-1

You can try this

   .title {
        text-align: center;
        width: 100%;
      }

remove align-self

Rahil Ali
  • 276
  • 1
  • 15