Achieving fullscreen mode on my mobile HTML page

Recently, I came across this website that I wanted to display in a webview on Android. Surprisingly, it displayed correctly but not in full screen. After some research and troubleshooting, I suspect there might be an issue with the css causing this problem. Unfortunately, I haven't been able to pinpoint the exact cause yet. Attached is a screenshot of how it appears on my phone. My ultimate goal is for the background to take up the entire screen. Do you think this is achievable?

Answer №1

Your "default.css" file has a padding on line 704 that needs to be removed.

@media all and (max-width: 960px){
    .center{
        width:auto;
    }
    ...
}

To achieve a full screen table, you should include position: absolute and height: 100% in your .tablatop CSS rule.

.tablatop { //make sure to add this style rule within your respective @media-query!!!
    position: absolute;
    height: 100%;
}

Answer №2

The div has padding of padding: 0 10px; applied in a media query which is causing it to take up extra space. To fix this issue, remove the padding.

@media (max-width: 960px)
.center {
padding: 0; 
width: auto;
}

Refer to the screenshot for more details.

Answer №3

Unsure about webview functionality, but you can attempt the following:

body,html{
    width:100%;
    height:100%;
    padding:0px;
    margin:0px;
    /*optional but in case it still does not function.*/
    min-width:100%;
    min-height:100%;
    /*further optional just in case elements overflow*/
    max-width:100%;
    max-height:100;
    overflow:scroll;/*or hidden*/

To specifically target this device, utilize a media query like so:

@media only screen and(max-device-width:(deviceWidthHere))and(max-device-height:(deviceHeightHere)){
    /*CSS here*/
    /*second 'and' clause is not necessarily necessary. lol*/
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The issue with a Bootstrap modal form integrated with JavaScript and PHP is that it fails to send emails upon submission

I have constructed this webpage with a button that activates a modal containing a contact form. <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#stayInformed">Stay Informed</button> My aim is to submit the form ...

Using PHP to download a file

I have successfully uploaded a PDF file to a directory named 'documents' on my web server. Currently, I am populating a table with data from my database, and I want to create links in the forms column that directly link to the associated files w ...

Conceal items in Sencha Touch while maintaining the integrity of CSS alignment

I have a Sencha Touch view that consists of various labels and buttons, all customized in my custom.css file. I am trying to hide everything except for one button and then show the elements when that button is clicked. I set "hidden: true" to those element ...

unique close button design for pop-up video player on YouTube

Struggling to add a custom close button to my Youtube video pop up. After unsuccessful research attempts, I'm turning to my fellow stack buddies for help. Any suggestions? ...

Maintain the vertical alignment of an item at a fixed point, even as the height of the

I'm currently working on a multi-step form project with three tabs, each containing a different section of the form and varying heights. The challenge I'm facing is to center the tallest tab vertically on the page, while aligning the other two ta ...

The border on a specific field is not showing up when using Django Crispy Forms

Utilizing bootstrap and crispy forms for styling my website has been successful, except for a border issue with the username fields. While all other fields are displayed correctly, the username fields appear without a border as shown in the image below: h ...

Using the justify-content:space-between property does not seem to be effective in a Nextjs

In my Next.js app, I am facing an issue with the justify-content: space-between; property not working as expected for two divs inside a container. However, justify-content: center; works fine. Interestingly, when I use the same code in an index.html file, ...

Trouble with AngularJS 1.x: radio buttons not displaying as checked

I am currently enhancing a form to include two sets of radio buttons that toggle panels on and off. The first set allows users to choose between contacting the customer ("Yes") or not ("No"). If "Yes" is selected, then they are prompted to specify whether ...

What is causing all webkit browsers to overlook the z-index in my code?

I have removed all unnecessary elements from my webpage to focus on reproducing a specific issue. HTML: <html lang="en-us"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initi ...

Adding values dynamically to a select dropdown results in an empty field being inserted in the dropdown if the option includes spaces

I am facing an issue with my dropdown select feature, where the value is supposed to be added based on input from a text box. Everything works smoothly when the input in the text box consists of a single word without spaces. However, it fails to add anyth ...

I want to design a bootstrap row with two col-**-6 columns, and within the second col-**-6, I want to add another two columns so that they stack on top of each other

I've managed to get it working to some extent, but I still need the col-**-6 elements to not stack on top of each other on smaller screens. This image shows what I'm aiming for: Each color represents a col-**-6. That's the layout I want, ...

Unable to make jQuery animate top function work

I have three rectangles set up like this. I've managed to make them disappear when clicking the close button on the right side of each rectangle, but I'm struggling with getting the remaining rectangles to move upward to fill the empty space. Her ...

Issue with Material UI React: Navbar does not properly align the box to the right side

https://i.sstatic.net/CHSwp.png I'm facing an issue with my navbar that is supposed to align all the page options to the right. Despite using a flexbox layout and trying different alignment properties like alignSelf: end, the text only moves slightly ...

Improprove Google PageSpeed score - must resolve

My mobile website is loading incredibly slow, despite my attempts to improve the speed using Google PageSpeed insights. Unfortunately, I'm having trouble interpreting the screenshot and identifying what changes need to be made. Is there anyone who c ...

Align Bootstrap list items vertically

I'm facing a challenge with aligning the yellow list item blocks vertically in my design. The issue arises because the black dog item is not aligning properly due to its image being shorter than the other two blocks. I've been struggling to find ...

Reliably analyzing text to generate unprocessed HTML content

My input text in a textarea is structured like this: This is some sample text./r/n /r/n This is some more sample text. I want to format it for display as follows: <p>Here's some text.</p> <p>Here's some more text.</p> ...

The HTML refresh is dynamically controlled by PHP variables

As a newcomer to php/html, I have a question about updating a page's html based on php variables in the forum. Can a page dynamically update its content using php variables? In my scenario, I have: <form action = "" method = "post"> <label&g ...

Sharing data between different JavaScript files using Knockout.js

I am working with two JavaScript files named FileA.js and FileB.js. Within FileA.js, there is a function called Reports.CompanySearch.InitGrid: function InitGrid(viewModel, emptyInit) { var columns = [ { name: 'CompanyName', ...

Passing the ID of a span element as an argument to a JavaScript

I'm attempting to develop a JavaScript function in IE that will copy text to the clipboard, but I am running into issues with my current code. Can anyone provide guidance on how I should properly structure my parameters and pass them as arguments? /* ...

The appearance of all input forms in MaterializeCSS when used in an electron environment appears to

After following the instructions here on how to get started with Materialize CSS, I am having issues with my input form appearing strange: https://i.sstatic.net/lveS2.png The contents of my current index.html file are as follows: <!DOCTYPE html> &l ...