I am creating a small blog website using metalsmith
and the PureCSS
framework. The layout consists of a simple three-row structure like this:
<div class="pure-g">
<div class="pure-u-1"> Navbar </div>
<div class="pure-u-1"> Content </div>
<div class="pure-u-1"> Footer </div>
</div>
Since I am still learning about CSS and responsive design, I have a question regarding the placement of the navbar within the grid layout. Should the navbar be included in a grid row or kept outside of it? According to PureCSS documentation:
All user-visible content should be placed inside a grid unit to ensure proper rendering.
Based on this guidance, it seems logical to include the navbar within a grid row, as it is visible to users. However, would this approach complicate media query handling for the navbar? Therefore, when utilizing responsive grids, where would be the best place to position the navbar?