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

146
Views
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 answers
Answer question

0

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

in your CSS file for all buttons

about 4 years ago · Santiago Trujillo Report
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!