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

235
Views
How to remove extra space between card and grid item in material ui

I am new to react and was using material ui. I was trying to place a card in a grid item.

here is my code:

<GridItem xs={12} sm={12} md={12} style={{ margin: "0rem" }}>
  <Card style={{ margin: "0rem" }}>
    <GridItem xs={2} sm={2} md={2}>
      {/* <Card style={{ margin: "0rem" }}> */}
      <GridItem xs={12} style={{ margin: "0rem" }}>
        <CustomOutlineInput
          style={{ margin: "0rem" }}
          id="coilID"
          label="Coil ID"
          variant="outlined"
          size="small"
        />
      </GridItem>
      {/* </Card> */}
    </GridItem>
  </Card>
</GridItem>;

However as you can see some extra spacing is generated in this way how do I remove this and make colums inside the grid item:

enter image description here

Also how do I add text boxes in a single row without increasing the spacing? each element is taking extra space:

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!