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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:21:26+00:00 2026-06-18T16:21:26+00:00

I am creating two different layouts: One for Landscape and one for portrait. The

  • 0

I am creating two different layouts: One for Landscape and one for portrait. The landscape layout has wider columns.
I am using the new version of Susy to do this.

This is my code:

/* iPads (landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
$total-columns  : 7;
$column-width   : 10.900em;
$gutter-width   : 2.80em;
$grid-padding   : 4.00em;

$show-grid-backgrounds  : true;
}

/* iPads (portrait) ----------- */
@media only screen 
and (min-device-width : 0px) 
and (max-device-width : 768px) 
and (orientation : portrait) {
$total-columns  : 7;
  $column-width: 7.2em;
  $gutter-width: 2.8em;

  .container {
    @include container;
  }

}

But it doesn’t work. The columns stay the same size (the smaller portrait size). How can I fix this?

Other responsive code on my page does work, it’s just the grids that do not!

Susy Documentation has a whole section on Responsive Grids, but it’s a bit complex to follow and doesn’t discuss orientation. There’s also this question that I asked before, but the solution does not work (I think its because the solution was for the old Susy version).

Thanks for any help that can be offered!

  • 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-18T16:21:27+00:00Added an answer on June 18, 2026 at 4:21 pm

    Susy is meant primarily to set widths of columns in percentages, which will make columns flexible to the size of the viewport or the outer container. I would use the $container-style: fluid; setting to tell Susy to use percentages for widths and margins. Since you are not changing the number of columns – you simply want the widths to change – let the widths become flexible. Then your media queries barely have to change.

    Here is my basic setting for a 12 column grid.

    @import "susy";
    $total-columns: 12; // Evenly divisible by 2, 3, 4 and 6
    $column-width: 60px;
    $gutter-width: 20px;
    $grid-padding: $gutter-width;
    $container-style: fluid;
    

    I keep these settings in my _base.scss file and never change it – instead, I apply@include span-columns( X )` to whatever container I have and adjust how many columns I want it to take up at different media-query breakpoints.

    Targeting iPads specifically is not very future friendly or the intention of Responsive Web Design, but I am sure you have your reasons. That comment was more for RWD newbies reading this forum.

    For better device sniffing, you may need to check the User Agent string. This question also has some nice ideas: A reliable media query to detect only iPad (or at best 1024×768 mobile devices)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a jQuery Mobile page that has two select menu's, one is
I am creating a website in which I have two different buttons. By using
I am creating two different icons for a google map. however only one icon
I got two different elements, placed side by side inside a linear layout. One
I am trying to put two different UIPopovers in one view. I'm fairly new
Essentially, I am just creating two classes where one class, in this case class
I need UNION two tables with creating new field, where 1 for first table,
I am working on creating an Action Bar like the one from the new
I'm creating a cross platform application using Swing and Netbeans (Group Layout). Is there
I'm creating android app that has table layout for the main activity, and that

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.