Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

153
Vistas
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 Respuestas
Responde la pregunta

0

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

in your CSS file for all buttons

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda