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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:36:11+00:00 2026-05-22T23:36:11+00:00

trying to making a mobile web aplication I need to fit that white bg

  • 0

trying to making a mobile web aplication

enter image description here

I need to fit that white bg in to the bottom using css when it has minimal content… and also the scroll will appear for the rich content

  • 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-22T23:36:12+00:00Added an answer on May 22, 2026 at 11:36 pm

    The easiest method is to leverage the jQuery Mobile project alongside some best practice CSS for height and a little extra script.

    Here’s a basic boiler plate for you to work with.

    <!DOCTYPE html> 
    <html> 
      <head> 
        <meta content='yes' name='apple-mobile-web-app-capable'> 
        <meta content='default' name='apple-mobile-web-app-status-bar-style'> 
        <meta content='width=device-width, minimum-scale=1.0, maximum-scale=1.0' name='viewport'> 
        <title>Example jQuery Mobile / Full-Height Content</title> 
        <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js' type='text/javascript'></script> 
        <script src='http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js' type='text/javascript'></script> 
    
        <style>
          @media screen and (orientation: landscape) {
            html, body {
              width: 100%;
            }
    
            .content h1.landscape { display: block }
            .content h1.portrait { display: none }
          }
          @media screen and (orientation: portrait) {
            html, body {
              width: 100%;
            }
    
            .content .landscape { display: none }
            .content .portrait { display: block }
          }
        </style>
        <link href='http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css' rel='stylesheet'> 
      </head> 
      <body> 
        <div data-role='page' data-theme='a'> 
          <div class='header' data-role='header'> 
            <h1>header</h1> 
          </div> 
          <div class='content' data-role='content'> 
            <h1 class="landscape">landscape!</h1> 
            <h1 class="portrait">portrait!</h1> 
          </div> 
          <div class='footer' data-role='footer'> 
            Nothing to see here.
          </div> 
        </div> 
        <script>
          (function() {
            var fixgeometry = function() {
              /* Some orientation changes leave the scroll position at something
               * that isn't 0,0. This is annoying for user experience. */
              scroll(0, 0);
    
              /* Calculate the geometry that our content area should take */
              var header = $(".header:visible");
              var footer = $(".footer:visible");
              var content = $(".content:visible");
              var viewport_height = $(window).height();
    
              var content_height = viewport_height - header.outerHeight() - footer.outerHeight();
    
              /* Trim margin/border/padding height */
              content_height -= (content.outerHeight() - content.height());
              content.height(content_height);
            }; /* fixgeometry */
    
            $(document).ready(function() {
              $(window).bind("orientationchange resize pageshow", fixgeometry);
            });
          })();
        </script> 
      </body> 
    
    </html>
    

    Hope this helps get you started.

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

Sidebar

Related Questions

I am trying to design a web page that provides content depending on the
I am making a data intensive web application that I am trying to optimize.
I'm making a mobile web app and am trying to make a star rating
I am trying to learn python and am making a program that will output
I am trying to accomplish the task of Making a Web request ->getting result
I'm trying to make a specific control smaller, without making its content smaller.. If
We're working on a web app that will deployed to mobile devices, iPad, iPhone,
Newbie question. I'm trying to make a mobile site using html5's geolocation (I know
JQuery Mobile is making my cry tonight. I'm trying to build custom controls so
I am trying to make an Iphone application for mobile health using html5,javascript, jqtouch

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.