I'm coming from Ed's answer (https://stackoverflow.com/a/14141798) regarding the usage of foundation classes in order to get an fixed navigation which contains to the grid. Each attempt to use these classes together with class="contain-to-grid fixed" as described in the Foundation documentation "Positioning the Bar" is not working. .contain-to-grid and .fixed is working only when it's used separately in one after another div-elements, please compare with my code below. Is that a known issue vs. the documentation/behaviour or is there anything wrong with my markup?
And here's the code from http://frickeln.jensfreyer.de/blog/
Edit: I had submitted a (not working) version of my markup first; that version was online, too (and appeared mistakenly not fixed). But I updated to the current with separated class assignments for .contain-to-grid and .fixed. as a basis for my question:
<header>
<div class="row">
<div class="large-12 columns">
<div class="contain-to-grid">
<div class="fixed">
<nav class="top-bar" data-topbar role="navigation">
<ul class="title-area">
<li class="name">
<h1>
<txp:link_to_home>
<txp:site_name />
</txp:link_to_home>
</h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<section class="top-bar-section">
<ul class="right">
<li class="devider"></li>
<!-- Navigation, Menü 1 -->
<li><txp:section link="1" title="1" name="blog" /></li>
<li class="divider"></li>
<!-- Navigation, Menü 2 -->
(...)
</ul>
</section>
</nav>
</div>
</div>
</div>
</div>
</header>
Edit: the markup above shows how the formatting is WORKING: the navigation bar fits to the grid and remains fixed at the top of the site.
I would like to emphasize the issue I have, after some help from @r8n5n: the behaviour of the markup is different (NOT WORKING as expected though described from Foundation, "Positioning the Bar", cp. above) when I try to combine the classes in one div:
<header>
<div class="row">
<div class="large-12 columns">
<div class="contain-to-grid"> <!-- <= it's WORKING with two div elements -->
<div class="fixed">
<nav class="top-bar" data-topbar role="navigation">
(...)
<header>
<div class="row">
<div class="large-12 columns">
<div class="contain-to-grid fixed"> <!-- <= and it's NOT WORKING with two classes together -->
<nav class="top-bar" data-topbar role="navigation">
(...)
I'm using Foundation 5.5.2 and Textpattern 4.5.7.