Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement offsetting section of grids #33

Open
katbow opened this issue Jun 1, 2017 · 0 comments
Open

Implement offsetting section of grids #33

katbow opened this issue Jun 1, 2017 · 0 comments

Comments

@katbow
Copy link
Collaborator

katbow commented Jun 1, 2017

The only subsection that's not complete for grids is grid offsetting.

There are currently no percentage left (or right) margins in tachyons. The only other option would be to use columns and margins with rem units, however I didn't think this was a good alternative in this particular case. Seems like a better one to leave for now and come back to at another time!

What's the reasoning behind not including margins as percentages? I read this section of the docs:

As powers of two will always produce integers, there will be no problems with sub pixel rendering across browsers. Computers aren't that great at math and so decimals lead to inconsistencies across platforms. Inconsistencies should be avoided where possible.

I was thinking percentage margins would sometimes result in non-integer pixel values which causes problems hence not being included. Can you give more insight @mrmrs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant