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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:08:35+00:00 2026-06-12T09:08:35+00:00

The different scripts being attempted: $(document).ready(function(){$(.body).addClass(ie-min);}); $(document).ready(function(){$(.body).attr(class, ie-min);}); $(document).ready(function(){$(.body).css(min-width, 350px);}); $(document).ready(function(){$(.body).css(min-width : 350px);}); $(document).ready(function(){$(.body).css(minWidth,

  • 0

The different scripts being attempted:

$(document).ready(function(){$(".body").addClass("ie-min");});
$(document).ready(function(){$(".body").attr("class", "ie-min");});
$(document).ready(function(){$(".body").css("min-width", "350px");});
$(document).ready(function(){$(".body").css("min-width" : "350px");});
$(document).ready(function(){$(".body").css("minWidth", "350px");});
$(document).ready(function(){$(".body").css("minWidth" : "350px");});

The CSS:

.body{min-width:1100px}
.ie-min{min-width:318px}
body.body{min-width:1100px}
body.ie-min{min-width:318px}

The HTML:

<body class="body">

The class “body” is the default min-width for users with javascript turned off. I’ve tried to run it with an external .js file via conditional comments and within the page itself. Example below:

<!--[if  IE 8]>
<link rel="stylesheet"type="text/css"href="/css/ie8.css"media="all"/>
<script type="text/javascript">
$(document).ready(function(){$(".body").addClass("ie-min");});
</script>
<script type="text/javascript"src="/scripts/respond.min.js"></script>
<![endif]-->

I’m trying this in different combinations and nothing is working. Am I missing something here for IE8?

  • 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-12T09:08:36+00:00Added an answer on June 12, 2026 at 9:08 am

    The problem is that I had JQuery library being loaded in the bottom of my pages, so the script/scripts weren’t able to run if the library wasn’t loaded yet. Duh! Hope this may help anyone who encounters the same issues.

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

Sidebar

Related Questions

I am using two different scripts on one page and when I call them
I have this script in the head of my index.html. I want different scripts
I am maintaining several Perl scripts that all have similar code blocks for different
I use this script in two different servers: function curlGetFileInfo($url, $cookies=default){ global $_config; $ch
We're using the Zend_Log class to update a few different watchdog database tables (that
In a php script, I've attempted an insert statement several different ways: $query =
What I am trying to do: There are three powershell scripts with different time
I'm getting a warning running one of my Perl scripts. The error is being
I'm building a Safari extension with two different content scripts. One script needs to
I have now tried about 6 different smooth scrolling scripts on my site and

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.