Foundation 6 Magellan sticky not working with Zurb template cli install

前端 未结 1 1456
执念已碎
执念已碎 2020-12-22 00:17

I\'m trying to use Magellan in a cli install of the Zurb fdn6 template. The page is running fine but Magellan just doesn\'t work for the sticky nav and throws the following

1条回答
  •  囚心锁ツ
    2020-12-22 00:45

    Unlike F5, making elements sticky in Foundation 6 is a bit tricky and frustrating to be frank. You don't just get it in the first try.

    In F6, to make the magellan or any element sticky, a reference point is needed to activate the stickiness.

    In this case, you need to have a root div with the id topAnchorExample and then write the next set of magellan generating codes.

    Try doing this :

        
    

    And try not to mention the inline css - width:100%. I guess you will take care of that.

    0 讨论(0)
提交回复
热议问题