zurb foundation is it possible to have full row width

后端 未结 15 2243
栀梦
栀梦 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 03:59

    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:

    .row.full {
        max-width: 80rem;  /* about 90rem should give you almost full screen width */
    }
    

    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)

提交回复
热议问题