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 8881175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:17:32+00:00 2026-06-14T20:17:32+00:00

I am building a mobile first website using Susy and would like to have

  • 0

I am building a mobile first website using Susy and would like to have different layouts for different screen sizes. Each layout will have its own set of columns, column widths and gutter widths.

How do I do this?


My Attempts:

1. Old Susy method

In old Susy, you would do it like this:

$base-font-size: 10px;
$show-grid-backgrounds  : true;


$total-columns       : 4;
$column-width        : 6.250em;
$gutter-width        : 1em;
$gutter-padding      : $gutter-width;

body {
background:pink;    
}


@media only screen and (min-width: 480px) {
$total-columns       : 3;
/*$column-width        : 12.567em;
$gutter-width        : 3em;
$gutter-padding      : $gutter-width;*/

body {
background:yellow;  
}


}

@media only screen and (min-width: 600px) {
$total-columns       : 6;
/*$column-width        : 7.500em;
$gutter-width        : 2em;
$gutter-padding      : $gutter-width;*/

body {
background:blue;    
}

}

@media only screen and (min-width: 768px) {
$total-columns       : 6;
/*$column-width        : 7.500em;
$gutter-width        : 2em;
$gutter-padding      : $gutter-width;*/

body {
background:green;   
}

}

@media only screen and (min-width: 960px) {
$total-columns       : 6;
/*$column-width        : 8.833em;
$gutter-width        : 3em;
$gutter-padding      : $gutter-width;*/

body {
background:red; 
}

}

[The background colors is so I can tell it is working]

In New Susy, when I do this, the number of columns is always 6 regardless of screen size. They are also not the correct column size.

2. Breakpoint Method
New Susy has a new break point method which lets you specify different columns for different layouts. This is how I have used it:

$base-font-size: 10px;
$show-grid-backgrounds  : true;


$total-columns       : 4;
$column-width        : 6.250em;
$gutter-width        : 1em;
$gutter-padding      : $gutter-width;

body {
background:pink;    
}

.layout-primary {
  @include container;
  @include susy-grid-background;
}


@include at-breakpoint(480px 3) {
  .layout-primary {
  @include container;
 }

}

@include at-breakpoint(600px 6) {
  .layout-primary {
  @include container;
 }
}

@include at-breakpoint(768px 6) {
  .layout-primary {
  @include container;
 }
}

When I use this code, the columns are now always stuck at 4, regardless of layout. You also cannot use this method to specify different column widths/padding values.

Susy is so awesome that I know I am misunderstanding something. But I’ve spent a long time going over the docs and trying different things, and cannot see what I am doing wrong.

I know I have asked this question before, but that was for the old Susy version.

  • 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-14T20:17:33+00:00Added an answer on June 14, 2026 at 8:17 pm

    The reason you are seeing 4-columns in the background at each breakpoint, is beacuase you have only declared @include susy-grid-background; in the 4-column context. I think someone has already filed a bug to create a breakpoint/background shortcut, so that will be coming soon. In the meantime, you’ll have to re-call that mixin everywhere you call container.

    @include at-breakpoint(600px 6) {
      .layout-primary {
        @include container;
        @include susy-grid-background;
      }
    }
    

    But you’re right, at-breakpoint only allows for changes to column-count at this point. I would like to expand that, so if you file a bug on github, I’ll happily take a look at it. In the meantime there is a with-grid-settings mixin that allows you to change all the basic settings (I’m also hoping to get the advanced settings in there if I can soon).

    @include at-breakpoint(600px 6) {
      @include with-grid-settings(6,6em,1em,1em) {
        .layout-primary {
          @include container;
          @include susy-grid-background;
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building my first jquery mobile site and have run into a problem. When
I'm building a mobile website. I use regular html for the dropdown like below.
Iam using sencha touch for building mobile application, Ia m using card layout switch
I am building something for mobile and would like somehow to clear, null objects,
I am building Dojo mobile app. I have a Json file like: { Introduction:
I am building Dojo mobile app. I have a Json file like: { Introduction:
I'm trying to test a mobile website I'm building using Windows Phone 7, but
I'm having a problem with onSubmit. I'm building a little mobile website using jQTouch
I'm building my first mobile app using PhoneGap and jQuery Mobile, and I've run
I am building mobile web sites with Jquery Mobile. I also have a javascript-based

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.