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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:03:54+00:00 2026-06-07T03:03:54+00:00

I am having an issue with DataTables with the styling of the header and

  • 0

I am having an issue with DataTables with the styling of the header and the footer.

Problems:

  • The header has the search box on a new line instead of on the same line float-right.
  • The pagination buttons/icons for the th’s show up on new lines as well.
  • The footer buttons show up smushed.

enter image description here

I have tried excluding all other css files except smoothness (Which gives it the grey look). Is there some setting I am missing out on? I looked all over the site for examples but they don’t make any mention of this issue.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <link href="css/smoothness/jquery-ui-1.8.21.custom.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="jquery-1.7.1.min.js"></script>
    <script language="javascript" type="text/javascript" src="jquery.dataTables.js"></script>
    <script language="javascript" type="text/javascript" src="jquery.dataTables.nightly.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        oTable = $('#num2').dataTable({
            "bJQueryUI": true,
            "sPaginationType": "full_numbers"
        });
    } );

    </script>

</head>
<body>
        <table id="num2">

            <thead>
            <tr>
                <th>
                num 1
                </th>
                <th>
                num 2
                </th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>john
                </td>
                <td>
                joe
                </td>
            </tr>
            </tbody>

        </table>
</body>
</html>

This is how the header and footer should look:
enter image description here

  • 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-07T03:03:55+00:00Added an answer on June 7, 2026 at 3:03 am

    By the look of it, you are missing the ‘structual’ CSS file for the datatable.
    I haven’t used Datatables myself, but I have had a lot of experience with jQuery and the jQuery UI and the CSS files are very cleanly separated between ‘structure’ and ‘theme’. Now I notice that you have included the css/smoothness/jquery-ui-1.8.21.custom.css file, which (assuming you ticked all the boxes on the download site) contains all of the structual CSS for the standard widgets (accordion, dialog, tabs etc) and one theme (Smoothness). What I think you are missing is the DataTables strucutal CSS file, which is not a default widget from jQuery UI, so would need to be obtained from the DataTables site. Having a look at the themeroller example on their site, they also have a CSS file of /demo_table_jui.css” as well as the /smoothness/jquery-ui-1.8.4.custom.css”

    Rendering inside an iFrame shouldn’t matter

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

Sidebar

Related Questions

I am having some speed issue with my datatables. In this particular case I
I am having issue with Google line chart API. When I reload the div,
I'm having problems when using a ButtonField to issue a row command. When I
I am a new ASP.NET developer and now I am having an issue in
I am having issue with png image on IE6 and tried to search every
I'm having this strange issue while adding a new row to a DataTable .
Having issue with slider navigation. Works perfectly fine when there are no other unordered
I having issue that content assistant / intellisense is working in methods such as
Hi guys I am having issue I have this query: SELECT * FROM useraccount
i am having issue with loading my selector via a jquery ajax load call

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.