Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make rows in Zurb Foundation 4/5 full screen?

By default, rows in Zurb Foundation 4 and 5 run at a max width of 1000px, even on very large monitors, which creates margins on either side of the content. How do I make it run at full screen without affecting the responsiveness of the design?

like image 598
Sinister Beard Avatar asked Jul 09 '13 08:07

Sinister Beard


3 Answers

Add the following code to the CSS file:

.row {min-width:100% !important;}
like image 176
Sinister Beard Avatar answered Oct 07 '22 13:10

Sinister Beard


I think the best way to do this is like this.

Add this into your css or a custom css-

.row.full-width {
    width: 100%;
    max-width: 100%;
}

Then in your html, do this-

<div class="row full-width"> </div>

This will allow you to keep the grid system in tact in the event you only want to use full screen for a header or footer.

like image 24
Tom Avatar answered Oct 07 '22 11:10

Tom


If you are using Sass/Compass, the zurb-foundation gem, or a customized Foundation distribution, you can set the $row-width variable. This will flow through anywhere else it's used. You can also adjust, for example, the number of columns, gutter width, and so on.

The bottom of the grid documentation explains more: http://foundation.zurb.com/docs/components/grid.html

like image 30
botimer Avatar answered Oct 07 '22 11:10

botimer