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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:38:13+00:00 2026-05-26T21:38:13+00:00

I want to use 960 gs adaptive.js script which allows you to select different

  • 0

I want to use 960 gs adaptive.js script which allows you to select different stylesheets based on the users screen size in px. However I am using wordpress and my css files are all linked in one main css file. I am wondering if this still will work properly. I don’t think it will here is the script below & below that is the css file top portion. I am not sure how to approach this.

// Edit to suit your needs.
var ADAPT_CONFIG = {
  // Where is your CSS?
  path: 'assets/css/',

  // false = Only run once, when page first loads.
  // true = Change on window resize and page tilt.
  dynamic: true,

  // Optional callback... myCallback(i, width)
  callback: myCallback,

  // First range entry is the minimum.
  // Last range entry is the maximum.
  // Separate ranges by "to" keyword.
  range: [
    '0px    to 760px  = mobile.css',
    '760px  to 980px  = 720.css',
    '980px  to 1280px = 960.css',
    '1280px to 1600px = 1200.css',
    '1600px to 1920px = 1560.css',
    '1940px to 2540px = 1920.css',
    '2540px           = 2520.css'
  ]
};

Linked style sheet

@import “css/reset.css”; @import “css/typography.css”; @import
“css/layout.css”; @import “css/960.css”; @import “css/mobile.css”: so
on…

  • 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-05-26T21:38:14+00:00Added an answer on May 26, 2026 at 9:38 pm

    It will not work, but there is nothing stopping you from using media queries or using adapt.js and simply keeping those files out.

    Adapt.js works by using javascript to call a css file dynamically. You can keep all of your primary styles in the linked file that you referenced, and only leave out the css files which create the grid layout for each screen size. Your path will need to look something like this:

    <?php bloginfo('template_directory'); ?>/css/adapt/

    Which assumes your adapt.js stylesheet files are stored in the /css/adapt directory inside your template root and your adapt.js javascript file is stored in the /js directory inside your template root. You will not need to tell WordPress to include the files because that is what the script is for.

    The full code might look something like this:

    <noscript> 
    <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/adapt/mobile.min.css" />
    </noscript> 
    <script> 
    // Edit to suit your needs.
    var ADAPT_CONFIG = {
      // Where is your CSS?
      path: '<?php echo get_template_directory_uri(); ?>/css/adapt/',
    
      // false = Only run once, when page first loads.
      // true = Change on window resize and page tilt.
      dynamic: true,
    
      // First range entry is the minimum.
      // Last range entry is the maximum.
      // Separate ranges by "to" keyword.
      range: [
        '0px    to 760px  = mobile.min.css',
        '760px  to 980px  = 720.min.css',
        '980px  to 1280px = 960.min.css',
        '1280px to 1600px = 1200.min.css',
        '1600px to 1920px = 1560.min.css',
        '1920px           = fluid.min.css'
      ]
    };
    </script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/adapt.min.js"></script>
    

    If you choose to use media queries instead you can embed them directly into your css files. If you do this you will want to define the bare-bones styles first (typically referred to as “mobile-first”) and then selectively enhance the site based on wider and wider viewports. See Ethan Marcotte’s article Responsive Web Design for a good explanation.

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

Sidebar

Related Questions

Below is my stored procedure. I want use stored procedure select all row of
I want to use the Publish.GacRemove function to remove an assembly from GAC. However,
I want use on my rails helper a script as follow: select_tag(:article_id, option_groups_from_collection_for_select( @article,
I want to crop a UIImage that the size of the UIImage is 640*960
i want use select statement on the a table and inserting result into a
I want to use the 960 grid system to generate the layout for my
dont want to use css frameworks like 960 cause that will lock the width.
I'm building a site which makes use of the popular 960.gs 16 column grid
I want use rownum in following query select, i use of it true in
I use UITableView and I want change the height of different cells. But I

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.