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

  • Home
  • SEARCH
  • 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 8071589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:44:06+00:00 2026-06-05T13:44:06+00:00

I am using ASP.NET MVC3 with the jQuery Datatable plug in. I am having

  • 0

I am using ASP.NET MVC3 with the jQuery Datatable plug in. I am having an issues with my CSS layout when the datatable is on a page. If there is no datatable then everything displays fine. When the datatable is on the screen then it overlaps the footer of my website. I can’t seem to get this to display correctly. I have a grid layout using the YUI3, and this is what I all use from YUI3 (in this order):

  • cssreset-min
  • cssfonts-min
  • cssgrids-min
  • cssbase-min

This works fine in the latest version of FireFox. I am only testing on IE8, this is a requirement and most of the people at my work uses IE8.

I have minified my HTML so that only the bare minimum is available. This is my HTML:

<!DOCTYPE html>
<html>
     <head>
          <title>My Website</title>
          <meta charset="utf-8" />
          <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
          <link href="/Assets/Stylesheets/hef2.css" rel="stylesheet" />
          <link href="/Assets/Stylesheets/jQuery-DataTables/css/jquery.dataTables.css" rel="stylesheet" />
     </head>
     <body>

          <div id="hd">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</div>

          <div id="bd">

               <div class="yui3-g">

                    <div class="yui3-u" id="nav">

                         <div id="nav-container">

                              <div class="content">
                                   <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
                              </div>

                              <div class="content">
                                   <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
                              </div>

                              <div class="content">
                                   <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
                              </div>

                              <div class="content">
                                   <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
                              </div>

                         </div>
                    </div>

                    <div class="yui3-u" id="main">

                         <div id="main-container">

                              <div class="content">
                                   <h1>Banks Dashboard</h1>
                                   <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
                              </div>

                              <div class="content">

                                   <div id="banks-datatable-wrapper">
                                        <div id="banks-datatable-container"></div>
                                        <div style="clear:both;"></div>
                                   </div>

                              </div>

                              <div class="content">
                                   <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
                              </div>

                              <div class="content">
                                   <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
                              </div>

                              <div class="content">
                                   <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
                              </div>

                         </div>

                    </div>

               </div>

          </div>

          <div id="ft">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</div>

          <script src="/Assets/JavaScripts/jQuery/jquery-1.7.2.min.js"></script>
          <script src="/Assets/JavaScripts/jQuery-DataTables/jquery.dataTables.min.js"></script>

          <script type="text/javascript">

               $(document).ready(function () {

                    $('#banks-datatable-container').html('<table class="display" id="banks-datatable"></table>');
                    $('#banks-datatable').dataTable({
                         "aoColumns": [
                              { "sTitle": "Engine" },
                              { "sTitle": "Browser" },
                              { "sTitle": "Platform" },
                              { "sTitle": "Version", "sClass": "center" },
                              { "sTitle": "Grade" }
                         ],
                         "bAutoWidth": false,
                         "bFilter": false,
                         "bLengthChange": false,
                         "bProcessing": true,
                         //"bServerSide": true,
                         "bSort": false,
                         "iDisplayLength": 11,
                         "sAjaxSource": '/Administration/Bank/List2'
                    });
               });

          </script>

     </body>

</html>

This is the only CSS that I currently use together with the CSS of YUI3:

body
{
     margin: auto;
     width: 1025px;
}

#nav
{
     width: 300px;
}

#main
{
     width: 725px;
}

Can someone please help me get this sorted out? I have tried tried adding clear:both but it didn’t work.

Is the an online service like jsbin where I can paste/upload my HTML/CSS code/files?

Code can viewed at: http://live.datatables.net/efosuj/3/edit. It displays correctly in the available viewer but when run separate in IE8 then it gives issues.

UPDATE 2012-06-12

I managed to add the following and it works, but I would like to add it in a style, tried it but it didn’t work:

if (navigator.userAgent.toString().indexOf('MSIE') >= 0) {
     jQuery('#main-container').css('overflow', 'auto');
}

This was added after the grid was loaded. Is this the only way to do this?

  • 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-05T13:44:09+00:00Added an answer on June 5, 2026 at 1:44 pm

    I used the following and it works for me:

    if (navigator.userAgent.toString().indexOf('MSIE') >= 0) {
         jQuery('#main-container').css('overflow', 'auto');
    }
    

    It was posted on the datatables forums.

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

Sidebar

Related Questions

I'm using jQuery Validate Unobtrusive with ASP.NET MVC3 Razor. I have a page with
I am using ASP.Net-MVC3 and I use this query in Layout.cshtml : $(function() {
i'm using asp.net mvc3 with jquery datepicker widget. i want the user to click
I'm using ASP.NET MVC3 with razor engine.I want to apply css class on body
I have been using Trirand's jqGrid with ASP.NET MVC3 as well as the jquery.jqgrid
I'm currently using ASP.NET MVC3 RC and I'm using the unobtrusive JQuery validations as
We're using ASP.NET MVC3 with Razor View engine and standard HTML and jquery on
With ASP.NET MVC3 I'm using Jquery/Ajax to post data from a form to a
i am using asp.net-mvc3 helpers and the jquery validation plugin (what comes out of
I am using Asp.Net Mvc3 and the unobtrusive jquery validation. I'd like to have

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.