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

276
Views
Proper placement of items in an 8pt grid?

I am attempting to build out an 8pt grid system based on css-grid. I'm making use of react and styled components (don't think this matters much) and am having some issues understanding the general process behind element placement.

Bare in mind, this is for mobile(ionic) and am not so concerned with desktop alignments.

Because of this, I'm only working with pixels/percentages.

I was planning on creating a container, row and column components respectively.

What's got me confused is as follows. I'm unsure of how my end user (another developer) would be placing items. ex: A user wants to place a button at the bottom of the screen.

Is this something the user would do as follows?

<Container>
  <Row s={8}>
    <Col row={8} s={4}>
      <GridItem start={2} end={3}>
        <Button />
      </GridItem>
    </Col>
  </Row>
</Container>

Or this solution.

<Container>
  <Row s={8}>
    <Col ></Col>
    <Col ></Col>
    <Col ></Col>
    <Col ></Col>
    <Col ></Col>
    <Col ></Col>
    <Col ></Col>
    <Col s={4} >
    <GridItem start={2} end={3}>
        <Button />
      </GridItem>
    </Col>
  </Row>
</Container>

I'm trying to figure out if I'm heading in the right direction with one of these markup solutions.

My initial plan, was to grab the current mobile devices (vertical) width and ensure it is naturally divisible by 8 and then make use of percentages. I was wondering if this is the correct direction to go about handling 8pt grid styling.

Thank you.

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!