如何在页脚之前引入空格

时间:2013-07-21 17:21:57

标签: css ruby-on-rails haml

顶部导航栏,间距(灰色)

enter image description here

页脚前没有间距:

enter image description here

我的布局文件(“navigation_top”是顶部的黑色导航栏)

%body
  = render "navigation_top"
  .main-content
  .container-fluid.padded
    = render "navbar"
    = yield
= render "footer"

1 个答案:

答案 0 :(得分:1)

.main-content{margin-bottom:20px;}

这对我有用

.container-fluid.padded {:style => “margin-bottom:20px;”}