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

192
Vistas
Angular how to make two button in the same size in responsive mode

I'm writing Angular code in which I have two buttons in the same size in web normal size, but when it comes to responsive mode the size changes and a button becomes bigger than the other. I tried to adjust them by changing padding-right and padding-left but if it works correctly in a mobile type for example IphoneX it did not work correctly in other mobile type such us Google pixel.

that's my code to adjust them in mobile version

@media (max-width: 480px) {
  #conseller{
    padding-right: 9%; 
    padding-left: 9%;
  }
 #button {
    padding-right: 18%; 
    padding-left: 18%;
  }
}

that's the code in HTML

<div class="feature-list-button-box mt-30 text-center">
                        <a style="color:white;" id="conseller" [routerLink]="[ '/contact' ]" class="ht-btn ht-btn-md">Parler à un
                            conseiller</a>
                        <a [routerLink]="[ '/service_suite' ]" id="button" class="ht-btn ht-btn-md ht-btn--outline">Nos
                            Services</a>
                    </div>

and this is how they look in web version:
enter image description here

and this is how they look in mobile version:
enter image description here

about 4 years ago · Juan Pablo Isaza
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