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

193
Views
How to align items horizontal in form field?

I have a sample form just under a table. Like below enter image description here

I want to strech the form field as same length with the table and I want to align form items horizontally.

My css is:

.buttonFooter {
    background-color: gray;
    align-items: center;
    flex-direction: row;
    display: inline-block;
}

And the code is:

<Card className='buttonFooter'>
                <Form className='buttonFooter'>
                    <input type="text" class="form-control" placeholder="First Name" value={firstName}></input>
                    <input type="text" class="form-control" placeholder="Last Name" value={lastName}></input>
                    <Button>Add New Customer</Button>
                </Form>
            </Card>

If I delete form tag and just use css.class for the card then it works (horizontal alignment) but I need to use a form to get the value of input box and send it to a method with button click. How can I align them horizontal and enlarge it with same size with table ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can set the width in css using:

width: x; (x being the width of your table)

I haven't tested it but you can try setting display to flex or inline-flex instead of inline-block

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