Google Chrome Mobile Not Displaying Website

Having trouble displaying a table on mobile using Google Chrome? It works fine on desktop and Samsung Internet. Tested on different devices but no luck.

If you can help, please visit

CSS:

@media screen and (min-width: 768px) {

    table.table_seapoint{
        width: auto;
        position: relative;
        margin-top: -50px;
        text-align: center;
    }
    table.table_seapoint_mobile
    {display: none;}

}

@media screen and (max-width: 770px) and (orientation : portrait) {
    table.table_seapoint_mobile{
        margin-top: -50px;
        width: 100%;
        position: relative;
        text-align: center;
        margin-bottom: -60px;
    }
    table.table_seapoint {
        display: none;
    }
}

HTML:

<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
...Table content here...
</table>

...Mobile Table content here...
</table>

<div class="stuff">[recent_products per_page="3" columns="3" orderby="title" order="ASC" paginate="true" category="featured" width=300px]</div>

UPDATE - Changed CSS but the issue persists:

@media (max-width: 599px) { 
    ...CSS rules...
}

@media (min-width: 600px) {
    ...CSS rules...
}

@media (min-width: 900px) {
    ...CSS rules...
}

@media (min-width: 1200px) {
    ...CSS rules...
}

@media (min-width: 1800px) {
    ...CSS rules...
}

Answer №1

@mixin for-phone-only {
  @media (max-width: 599px) { @content; }
}
@mixin for-tablet-portrait-up {
  @media (min-width: 600px) { @content; }
}
@mixin for-tablet-landscape-up {
  @media (min-width: 900px) { @content; }
}
@mixin for-desktop-up {
  @media (min-width: 1200px) { @content; }
}
@mixin for-big-desktop-up {
  @media (min-width: 1800px) { @content; }
}

credited to https://www.freecodecamp.org/news/the-100-correct-way-to-do-css-breakpoints-88d6a5ba1862/

Experiment with these alternative media queries instead.

If you find using the portrait media query glitchy, it's best not to rely on it.

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

I'm curious, do you know the standard width of an HTML table cell <td>?

Can someone point me in the right direction to find the default width of a <td>? I've been searching through the HTML Living Standard, HTML5 Recommendation, and other sources but haven't found a clear answer. From what I've observed, ...

Transferring values between radio buttons

Once a user selects a radio button and clicks continue, the corresponding links to other pages I coded should be displayed. However, the selected radio button link should not open immediately, as additional information needs to be entered by the user on th ...

Creating adaptable web pages with Bootstrap to ensure optimal display across

Create a customized webpage featuring Bootstrap's responsive navigation bar, a circle-shaped image that adjusts to different screen sizes, and a responsive footer. View the layout of the webpage in the following snapshots: Image 1: Web page displaye ...

Secondary sidebar remains static and is not visible

UPDATE: It's strange that even after commenting out <?php get_footer(); ?>, it still appears... perhaps the initial theme is executing something in the background? Just to clarify, I am utilizing the HTML5 / Starkers boilerplate theme: http://wo ...

Insert image using AJAX

I am attempting to use Ajax to dynamically add an <img> element to a div on my webpage. The image's name needs to be fetched from a database. Although I have successfully added the <img> tag to the div and set the correct source (src) att ...

What is the best way to evenly space out divs filled with images in a horizontal layout?

On my website, the header consists of text and a logo. Since the font used is not standard, the text is displayed as an image. I am looking to create a design in which the elements of the site adjust according to the size of the browser window. Is this wh ...

What is the reason behind negative numbers appearing as "5-" rather than "-5" in the basic calculator coded using HTML and JavaScript?

As I am practicing my coding skills, I encountered an interesting issue. Any operation that results in a negative number displays as wrong, but when using console.logs it shows the correct result. Can someone explain why this is happening? <!DOCTYPE h ...

NodeJS for CSS Parsing and Selecting

Can anyone recommend a NodeJS library similar to https://github.com/alexdunae/css_parser? I have tried using https://github.com/visionmedia/css, but it doesn't fulfill all my requirements. For example, when I parse the following CSS: .behavior1 {co ...

Tips for iOS Safari: Prevent the main page from scrolling underneath an overlay, while still allowing the overlay to scroll independently

When applying an overlay to a web HTML User Interface on iOS, you may encounter the issue where the underlay page continues to scroll beyond the overlay even after setting overflow: hidden on the body or html. Interestingly, this problem does not occur o ...

Is there a way to transform an HTML table into an Excel file with several sheets?

Is there a way to transform multiple HTML tables into an Excel file with multiple worksheets? I need assistance with this task. You can find an example here function exportTablesToExcel() { var tableContent = "<table border='2px'>< ...

Instructions for converting a MySQL select statement within a foreach() loop into an HTML form

I'm in the process of developing a course registration system for a small project. Currently, I have a table named 20182019carryovertbl from which I successfully select students who are carrying over their courses. Now, I need to transform this select ...

Tips for enabling fullscreen mode in a YouTube embedded video with just a button click

Imagine you have an iframe embedded on a webpage, allowing users to watch a YouTube video: <iframe width="640" height="390" src="https://www.youtube.com/embed/--id--" frameborder="0" allowfullscreen></iframe> Now, is there a way to inclu ...

Adjust the color of the Bootstrap navbar on hover

I need help changing the color of the links in the navbar when they are hovered over with the mouse. Here is my current code : <header> <nav class="navbar navbar-default"> <div class="container-fluid"> ...

Struggling to access a JSON file using Angular framework

I'm currently working with the following JSON and controllers: JSON Format: {"tomcatLogDir":"C:\\apache-tomcat-7.0.70\\logs","tomcatLogs":["1.log","2.log","3.log"]} Factory: app.factory('filesFactory', [ '$http&a ...

RequireJs is failing to load a script based on its name

Recently, I delved into the world of RequireJs to enhance my understanding. However, I encountered a hurdle while trying to load a JavaScript dependency using its custom shortened name. Despite my efforts, I can't seem to figure out what I'm doin ...

After the checkbox is clicked, I must send a boolean value to the function through the input flag in AngularJS

<input class="bx--toggle" id="toggle-view" type="checkbox" ng-model="vm.monthView" ng-change="vm.getRelevantData()" ng-attr-data-modal-target="{{vm.alertForSaveAll ? '#add-save-all-alert-modal': 'undefined'}}"> Within this p ...

Transforming a MySQL table into a pivot structure where each column occupies its own row

My WordPress site includes a form created with the ARForms plugin which collects names, email addresses, and telephone numbers. However, the data is stored in a database layout that I find inefficient. Within my MYSQL WordPress table, the structure looks ...

Is there a way to create a dropdown menu that stretches across the entire page width when the burger menu is hovered over?

Is there a way to create a full-width dropdown menu that appears when the burger icon is clicked, while still maintaining the close function? (The dropdown menu and burger icon should transition smoothly when clicked) Here are the JavaScript functions for ...

Issues with CSS rendering font in a suboptimal way

Whenever I set a simple font rule for my text, the output is not displayed correctly and appears blurry. The font looks fine in Mozilla Aurora browser but displays poorly in newer versions of Google Chrome and Firefox. Does anyone know why this happens? I ...

What is the best way to place a div absolutely in a flex box without affecting the positions of its neighboring elements?

I have an element with the #text inside a flex container and I want to position something absolutely beneath it: How can I ensure that it does not affect the positioning of its siblings in the flex layout? #container{ display: flex; align-items: cen ...