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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:03:51+00:00 2026-05-19T22:03:51+00:00

Just trying to get into JQueryMobile. I want to do something simple like putting

  • 0

Just trying to get into JQueryMobile. I want to do something simple like putting a table in the centre of a page but it seems to put the table at the top next to the header with the footer below, so only 30% of my page is being used. I tried setting height=100% for the html, body, and table elements but this did not help. I want the table to use all the available space between the header and the footer.

<!DOCTYPE html> 
<html> 
<head> 
<title>Page Title</title> 
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js">  
   </script>   
</head> 
<body> 

<div data-role="page">

<div data-role="header">
    <h1>Page Title</h1>
</div><!-- /header -->

<div data-role="content">   
    <table border=1px>
  </tr>
  <tr >
     <td>This is centered</td>
  </tr>
 </table>       
</div><!-- /content -->

<div data-role="footer">
    <h4>Page Footer</h4>
</div><!-- /header -->
   </div><!-- /page -->

 </body>
</html>

JD

  • 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-19T22:03:51+00:00Added an answer on May 19, 2026 at 10:03 pm

    You don’t need JQuery or Javascript, just Css 🙂

    <!DOCTYPE html>
    
    <html>
        <head>
            <meta charset = "utf-8">
    
            <title></title>
    
            <style>
                #content {
                    display: block;
                    height: 70%;
                }
    
                #footer {
                    height: 15%;
                }
    
                #header {
                    height: 15%;
                }
    
                body {
                    position:absolute;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    top: 0;
    
                }
    
                /* Sets */
    
                #content, #header, #footer {
                    -moz-box-sizing: border-box;
                    -ms-box-sizing: border-box;
                    -webkit-box-sizing: border-box;
    
                    border: 1px solid black;
                    border-bozing: border-box;
                }
    
                #header > h1, #footer > h4 {
                    margin: 0;
                }
            </style>
        </head>
    
        <body>
            <div id = "header">
                <h1>Page Title</h1>
            </div>
    
            <table id = "content">
                </tr>
                    <td>This is centered</td>
                </tr>
            </table>      
    
            <div id = "footer">
                <h4>Page Footer</h4>
            </div>
        </body>
    </html>
    

    Preview

    enter image description here

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

Sidebar

Related Questions

I am just trying to get into python, but I've found it very difficult
Developing a website and just trying to get back into the swing of (clever)
I'm trying to retrive a dataset to a Gridview, but I just don't get
Just trying to get into the Core Data stuff and getting crossed up right
I'm just trying to get into NAnt for my build processes, and successfully have
I'm just trying to get more into stl semantics, and converting old loops over
I'm just trying to get back into .NET MVC with the new release and
Just trying to get my head around Generics by reading this enlightening article by
Just trying to get my irb sessions to actually list the current line of
Just trying to get up to speed with the SDK... So, I've created my

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.