inline display does not work!

Asked

Viewed 59 times

1

I’d like to keep it that way: inserir a descrição da imagem aqui

But it just stays that way:

inserir a descrição da imagem aqui

Css code:

.ro{
text-align: center;
display: inline;
}

Php code:

    <div class="ro">
    <div class="col-4 text-center">
        <p>_______________________________________</p>
        <p>Coordenador Pedagógico</p>
    </div>
    <div class="col-4 text-center">
        <p>_______________________________________</p>
        <p>Gestor</p>
    </div>

1 answer

0


There are several ways to solve this, I’ll give you the one I find simpler that is putting both div class .ro within a container with felx. The flex will make you both div side by side, and with justify-content: center; you line up everything in the center

See the code:

.ro{
  text-align: center;
  display: inline;
  margin: 10px;
}
.container {
  display: flex;
  justify-content: center;
}



    
<div class="container">
  <div class="ro col-4 text-center">
      <p>_______________________________________</p>
      <p>Coordenador Pedagógico</p>
  </div>
  <div class="ro col-4 text-center">
      <p>_______________________________________</p>
      <p>Gestor</p>
  </div>
</div>

  • Oops, thank you so much! It worked.

  • @wenermorais without problems friend, good luck there ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.