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

Adding Padding to Flex Elements - IE Bug #155

Closed
numnx opened this issue Nov 9, 2017 · 0 comments
Closed

Adding Padding to Flex Elements - IE Bug #155

numnx opened this issue Nov 9, 2017 · 0 comments

Comments

@numnx
Copy link

numnx commented Nov 9, 2017

I had some problems when adding padding to flex Elements.
Problem: Elements are bigger than expected - the last Element is in a new row. The problem only occurs in Internet Explorer and can be fixed by adding a max-width or by adding "flex-basis: auto;" to the Flex Elements.

Example:

HTML:

<div class="g-grid">                        
        <div class="g-block size-25 somepadding">

CSS:

.somepadding {
  padding: 10px;
}

.size-25 {
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    box-flex: 0;
    -webkit-flex: 0 25%;
    -moz-flex: 0 25%;
    -ms-flex: 0 25%;
    flex: 0 25%;
    width: 25%;
    flex-basis: auto;
}

Fix:
*[class*='size-'] { flex-basis: auto; }

It would be great to see this fix in your next Version or maybe there is a better solution for this problem.
Thanks

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

2 participants