zurb foundation is it possible to have full row width

后端 未结 15 2214
栀梦
栀梦 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:06

    yes, just use like this:

      <div class="large-12 columns">
    
        <h2>Header Twelve Columns (this will have full width of the BROWSER <---->></h2>
    
      </div>
    

    0 讨论(0)
  • 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.

    <div class="row full">
      <div class="medium-6 column">This column touches Left edge.</div>
      <div class="medium-6 column">This column touches Right edge.</div>
    </div>
    
    0 讨论(0)
  • 2021-01-30 04:11

    I ran into the same problem yesterday. The trick is, for full width spanning blocks, you just keep them out of the row/column structure, since row/column will always apply the default padding. Keep your footers and headers on their own, and use row/column inside them.

    <header>
        This will span the full width of the page
    </header>
    <div class="row">
        <div class="twelve columns">
            This text will flow within all typical padding and margins
        </div>
    </div>
    <footer>
        This will span the full width of the page
        <div class="row">
            <div class="twelve columns">
                This text will flow within all typical padding and margins
            </div>
        </div>
    </footer>
    
    0 讨论(0)
提交回复
热议问题