-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Percentage Based Issue - Grid #4336
Comments
Happend to me too, 👍. |
@davidpustai Did you have a fix or are you still waiting on foundation's email reply.. |
Nope, currently I'm hacking it with |
@mrsweaters is there a scss setting to allow a longer percentage? |
+1 |
After looking into this issue it doesn't appear that lib-sass has exposed the |
yes! Same problem: On this subject...I am experiencing a gap between columns that drops in and out every time I resize my browser. It's rounding pixel percentages and inserting the gap between the divs when the total pixel width of the browser changes from odd to even, etc. I have background colors on these columns, so it's extremely obvious. This is mitigated by removing the float: right.
|
Anyone know how to overwrite it with some mixins? That would be great for the meantime! |
Hi @harianus I wouldn't say this is a scss version but here what I am using:
If anyone has a better solution, then I welcome it. I hope this precision is fixed. This is quite big of an issue for responsive designs.. |
In instances where you'd like the last column to not float right you can put a class of There's not a ton of stuff out there on which decimals various browsers respect, at least not from the last year, but we can resolve this in almost all cases by using calc() for the width. This allows the browser to decide how specific it can get. We still have a manually calculated % fallback. Fixed in 5.3-wip |
see twbs/bootstrap-sass#409 foundation/foundation-sites#4336 for examples of how the default precision of 5 causes rounding errors
I have noticed that there are not enough digits in the grid system to allow for a pixel perfect workflow:
As you can see below @ 1271px wide chrome bugs. I can only presume that create a pixel due to the math (33.33333% * 3) - 100% = -0.00001
Is this a problem with my project, as my chrome is the latest and this is also apparent in the latest safari.
For a comparison, I have got the Bootstrap 3 equivalent grid layout, what do you think all?
(Bootstrap 3 - 3 Column Grid [small])
Notice that there are lot more 3's than in foundation 5.
What would be the best way to fix this bug, as scss is used to create the column numerical digits? I dont want to use important as a bug fix for this project.
The text was updated successfully, but these errors were encountered: