I'm using foundation 3 to build a responsive website but I want to have the Footer and Navigation background width to occupy the entire width? I have named my rows as
class="row navigation"
class="row footer"
I tried looking for how to fix this but I'm out of options. I'm assuming it is a small fix in the foundation.css file but it's a bit too overwhelming at the moment as I'm new to it.
Any poiinters much appreciated.
What I have been doing is to add a custom class so that I can chain it with .row and override the max-width setting.
<div class="row full-width"></div>
I put width in here too to cover bases, but it is already declared in foundation.css so you can just omit it.
This is in regards to Foundation 5. None of the answers given so far, provide edge-to-edge, full widths. That's because inner
.columns
add padding.For a true edge-to-edge, full width content, add this to your CSS.
Simply add
.full
class to a.row
you wish to extend full width.Just override the
max-width
property asmax-width: initial;
, for example,this works for me :)
Just set the
http://foundation.zurb.com/forum/posts/927-full-width-layouts
I ran into the same problem yesterday. The trick is, for full width spanning blocks, you just keep them out of the row/column structure, since row/column will always apply the default padding. Keep your footers and headers on their own, and use row/column inside them.
You really would want to keep the row class otherwise you lose a lot of the power of the grid system. Why not change the setting for $rowWidth from 1000 (default) to 100%. This can be found in the file foundation_and_overrides.scss