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

letter-spacing issue on the grid / grid__item #62

Open
anthwinter opened this issue Feb 3, 2014 · 5 comments
Open

letter-spacing issue on the grid / grid__item #62

anthwinter opened this issue Feb 3, 2014 · 5 comments

Comments

@anthwinter
Copy link

In Chrome 32.0.1700.102, I have noticed that the letter-spacing value of -0.31em has some problems. It makes the grid__item appear 1px smaller in width than you define.

It seems assigning the value of -0.25em, instead of -0.31em, fixes the problem.

I have set up a pen here: http://cdpn.io/EzqDe

@fspoettel
Copy link

This is a known issue with this method, I'm working on a fork that uses display: flexwith the current ìnline-block`-grid as a fallback to circumvent this issue once and for all for all modern browsers.

@shaunbent
Copy link

I've just been looking into this issue and found that applying both the font-size: 0; fix with letter-spacing: -0.31em; seems to work well across devices and browsers. It seems that the font-size fix takes priority and removes the whitespace correct but for older versions of Android which has a known issue with the font-size fix they fall back to the letter spacing solution.

I'm going to do some further testing across more devices and browsers to be sure. I'll let you know if I find anything different.

@andykirk
Copy link

I've been looking into this too:

http://demo.gridlight-design.co.uk/inline-block-spacing.html

HTH

@Krknv
Copy link

Krknv commented Mar 21, 2014

Whats if .grid { letter-spacing: -$gutter; } ?

@Zlate
Copy link

Zlate commented Aug 30, 2016

In one forum I read that settings the font-size to 0.1px on the .grid might work.

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

No branches or pull requests

6 participants