Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!