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

not sure how to use it ? #85

Open
phil123456 opened this issue Jan 18, 2017 · 5 comments
Open

not sure how to use it ? #85

phil123456 opened this issue Jan 18, 2017 · 5 comments

Comments

@phil123456
Copy link

phil123456 commented Jan 18, 2017

Hi,

I tried implementing "flexibility" but with no luck

the problem is that I create my child elements dynamicaly, so I am not sure if I have to call flexibility once on the main div and then create the child elements or call flexibility everytime I create the child elements ?

the child elements, apparently are stacked instead of beeing grouped by 3

parent

<div data-style="display: flex;" id="mediaManager_medias" style="display: flex;flex-wrap: wrap;-js-display: flex;"></div>

children

<div style="width:300px;height:300px;margin:3px;min-width: calc(33.3333% - 10px);">

can someone enlight me on this ?
thanks

@samwilliscreative
Copy link

I'd assume you'd need to run flexibility after the elements are built

@phil123456
Copy link
Author

got it to work but the divs are like
[]
[] []
[]
[] []
[]
[] []
instead of 3 in a row
[] [] []
[] [] []
[] [] []

@samwilliscreative
Copy link

Have you used any :nth-child or :nth-of-type selectors that may be causing it?

@phil123456
Copy link
Author

no, the only style I used are mentioned above

@samwilliscreative
Copy link

What happens if you remove the margins from the child elements?

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