Fullpage.js: Flexbox compatibility question

Created on 20 Aug 2016  路  7Comments  路  Source: alvarotrigo/fullPage.js

Hi all,

First of all, wonderful plugin been having lots of fun with it.

However I do want to ask a question which might or might not be a bit silly, as I am relatively new to javascript plugins. I can't seem to find a question about it so here goes:

Is Flexbox incompatible with this plugin? It would appear as if my entire layout in set in CSS is being disregarded, as of the moment I incorporate the plugin in my project.

question

Most helpful comment

My layout was disturbed by this plugin too. What has helped me, was to change the value of verticalCentered to false.

All 7 comments

Flexbox is just a CSS technique.
You can apply it inside seach section or slide as you wish. The only thing fullpage.js does is creating the sections and slides height and width or centering it if you use verticalCentered:true

I also have this problem to be honest. Flexbox layouting is somehow disturbed..

@shezankazi the issue is probably related with the use of display: table-cell on the.fp-tableCell element that wraps your section content when you use the fullPage.js option verticalCentered:true.

Try using verticalCentered:false and you will get rid of that display property.

My layout was disturbed by this plugin too. What has helped me, was to change the value of verticalCentered to false.

@kwiat1990 This has fixed the problem in my case as well. Thanks for the info :)

Hey guys just go one level down. If fullpage is targeting section #s1 put a display flex div inside of it

@kwiat1990 I've spent 2 hours trying to figure it out. Your solution worked for me too. Thank you :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sperziemone picture Sperziemone  路  5Comments

villain2 picture villain2  路  3Comments

meceware picture meceware  路  3Comments

piaomiao picture piaomiao  路  5Comments

sloyer picture sloyer  路  3Comments