Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8207313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:57:35+00:00 2026-06-07T08:57:35+00:00

I just started to play with Susy. I have a 12 column grid that

  • 0

I just started to play with Susy. I have a 12 column grid that has grid-padding on it. Now i want the header of my page to span the whole grid including the grid-padding. What I’m doing right now is calculating the overall width and then setting a negative margin on the header. That’s feels rather hacky to me… Is there a cleaner way to do it?

$total-columns  : 12;
$column-width   : 3.5em;
$gutter-width   : 1.25em;
$grid-padding   : 2em;

$total-width: ( $total-columns * ($column-width + $gutter-width) ) + ( 2 * $grid-padding ) - $gutter-width;

header {
    height: 150px;
    width: $total-width;
    margin-left: -$grid-padding;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:57:36+00:00Added an answer on June 7, 2026 at 8:57 am

    You have two good options. One is a simplified version of what you have. Since block elements are 100% width by default, you can simply eliminate your width setting (and all that hacky math).

    header {
        height: 150px;
        margin: 0 0 - $grid-padding;
    }
    

    Your other option is to use multiple containers on the page. That requires a change to the markup, but sometimes it’s a simplification that works well. If you move the header outside your current container, and declare it as a container of it’s own, that will do the trick.

    (as a side note: if you do need the full width ever, you can simply use the columns-width() function (for inner width, without padding) or container-outer-width() for the full width including the padding.)

    UPDATE:

    I’ve been using this mixin, to apply bleed anywhere I need it:

    @mixin bleed($padding: $grid-padding, $sides: left right) {
      @if $sides == 'all' {
        margin: - $padding;
        padding: $padding;
      } @else {
        @each $side in $sides {
          margin-#{$side}: - $padding;
          padding-#{$side}: $padding;
        }
      }
    }
    

    Some examples:

    #header { @include bleed; }
    #nav { @include bleed($sides: left); }
    #main { @include bleed($sides: right); }
    #footer { @include bleed(space(3)); }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just started to play with CodeIgniter 1.7.2 and imendialtly noticed that there is
I have just started to play with Play framework (2.0) and I'm having some
I just started to play around with Eclipse M2T JET2 . Now I noticed
Just started to play around with node.js, have some past experience with JavaScript but
I'm just getting started with Meteor and I want to play a static audio
I've just started playing with Play! framework, and stumbled on such problem: modules that
I've just started to play with WPF. Is it possible to have the size
I've just started having a proper play with Powermock and noticed that it slows
I have just started to learn the Play 2.0 Framework. The one thing I
I just started working with play, and I modified the way I'm doing a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.