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.
Use "Section" as in:
Then, assign an ID to the section and use that for your background.
I know that there are already many answers, but I think I have something new to add in this topic if someone is using Foundation 5 and stumbled upon this question (like me).
As Foundation is using REM units, it would be best to alter
.row
class using them and by adding extra class, so you can have only selected rows full-width. For example by using.full
class:You can see that it is used like this even in documentation page of Zurb Foundation (they altered
.row
class, though): http://foundation.zurb.com/docs/ (just look into page source code)Foundation 6 supports this feature naturally with
row expanded
. code example:Read more here: http://foundation.zurb.com/sites/docs/grid.html#fluid-row
I completely disagree with the answer. You shouldn't have to use !important
Please refer to my article and demo at http://edcharbeneau.github.com/FoundationSinglePageRWD/
You should be able to get what you need from there. The demo is for 2.2 but is very similar in function to v3.
If you're using Zurb Foundation Framework, simply remove the
row
class and wrap the element in a classcontainer
that is 100% width. Now you probably want to center the stuff, use classcentered
like this:yes, just use like this: