zurb foundation is it possible to have full row width

后端 未结 15 2555
栀梦
栀梦 2021-01-30 03:06

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

15条回答
  •  忘了有多久
    2021-01-30 04:07

    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.

    .row.full { width: 100%; max-width: 100%; }
    .row.full>.column:first-child,
    .row.full>.columns:first-child { padding-left: 0; }
    .row.full>.column:last-child,
    .row.full>.columns:last-child { padding-right: 0; }
    

    Simply add .full class to a .row you wish to extend full width.

    This column touches Left edge.
    This column touches Right edge.

提交回复
热议问题