Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

150
Visualizações
How to put all same tags in particular one another tag at a time wherever I used that tag?

My Html is as follow,

<html>
<head>
</head>
<body>
<label>Name : </label>
    <input type="text" id="user" /> &nbsp; &nbsp;
    <button id="submit"> Hit Me !!</button>
</body>

  <p id="id1"> This is paragraph which has id1.</p>
  <p id="id2"> This is paragraph which has id2.</p>
  <button id="change"> To Change Color !!</button>
</html>

This is just a small portion of my code and I have lots of button tags in my HTML. I want to put all the buttons in the center of screen (Horizontally). I have also created same CSS for all buttons. So what to write in that CSS, so I can get all the buttons in center ?

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

button{
    margin-left:auto;
    margin-right:auto;
  }

in your CSS file for all buttons

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda