Responsive tables for mobile are not displayed correctly on Wordpress using Chrome for iOS 9, as the td element always retains the display property of table-cell

When viewing responsive tables on Chrome for iOS 9 (iPhone 5), the display style attribute for td is always set as { display: table-cell }, when I actually want each td to be on a separate line, resembling rows. This issue only occurs on mobile and works fine on all desktop browsers including Chrome. It also looks good on chrome developer tools in various mobile modes as well as on saucelabs mobile phone simulator.

Interestingly, when I save and cache the page, then view it on Chrome for iOS on iPhone, it displays properly with each td on its own line. It seems like wordpress might be causing some interference since the cached version displays correctly while the live version does not. I've spent countless hours trying to resolve this without any success.

Here are the unsuccessful attempts I've made to try and fix the responsiveness of the tables on my iPhone:

  1. Added at the beginning of the file,
  2. Added display: block; clear: both; inline at the html-element-tag-level,
  3. Cleared cache and added javascript to alert the css("display") which still outputs table-cell,
  4. Added ids for each td and applied 'display: block' through external CSS,
  5. Implemented a piece of javascript to change all td's 'display' to 'block' ($("td").css("display","block"); ) when a select field is changed - works on cached version but not live,
  6. Tried using similar approach as 5. above to change display to none, but not to block!

If I remember any other solutions I've attempted, I will update the question accordingly.

Answer №1

The issue appears to be resolved in the latest version of iOS9. I have tried and cannot reproduce it on Firefox for iOS 9.2.1 or Chrome for iOS 9.2.1.

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

Responsive carousel with multiple items

I am in the process of developing a website that requires the implementation of a carousel feature. Since the website is based on AngularJS, I initially considered using Angular's Bootstrap Carousel. However, I encountered an issue where this carousel ...

How the footer behaves when the window is resized in CSS

After following the pointers I found in this resource, I successfully created a sticky footer. However, my goal now is to set the minimum window resizing limit to 700 pixels. The issue arises when I resize the window and it falls below 700 pixels - there ...

Ensure that the placeholder remains visible as you type in the input field

Is there a way to implement an input text field in React with the placeholder "DD-MM-YYYY," that partially disappears as I start typing? For example, when I type "02-," only "-MM-YYYY" should remain visible as part of the placeholder. ...

Styling React Native components using multiple CSS arguments

Can you help me with styling in react-native using CSS like this? border-width: 5px 5px 5px 5px I attempted to use: borderWidth:{5,5,5,5} and borderWidth:'5px 5px 5px 5px' but it didn't work ...

Rotate the horizontal scroll of an inner div within an outer div using CSS

I am looking to create an outer div with horizontal scroll and inner div with vertical scroll where the inner div moves along with the outer div. <body> <div id="wrapper"> <div id="outer">content outer <div id="inner"&g ...

When the text overflows from the div, place it on a new line to ensure readability

I have been struggling to make my text wrap onto a new line within the box. You can view the JS Fiddle Demo here: http://jsfiddle.net/SfG8r/1/ Essentially, I want the text to wrap onto a new line like a paragraph in a book when it exceeds the box boundari ...

Using props as classnames in next.js applications

I am currently attempting to create a dynamic header for each page of my app that changes color based on the current page. Here is my approach: <Header className="headerBitcoin"></Header> My goal is to have the same header component ...

Adding events to a TinyMCE iframe in WordPress

Recently, I implemented some customized div wrapper styles in Wordpress. However, when utilizing these styles on a page, I encountered difficulties adding content below them. Despite using CSS:after within the divs to generate a selectable area, this metho ...

An effective method for utilizing a multiple choice input (presented as buttons) for entering data into a database using html, css, and js

I'm trying to figure out the coding process using buttons and input It's giving me a result, but only allows for a single choice Although I have limited experience with this, my goal is to create a multiple choice selection for days of the week ...

Stop elements from overextending within their parent container

I am facing an issue with two divs that are wrapped inside a container div. The bottom div contains a dynamically filled table, which determines the overall width of all the divs. On the top div, I want to display several small red blocks that need to tak ...

What could be causing the svg to not be visible inside the div?

I am struggling to display an SVG element within a div as it is not visible at all. Can someone help me make the SVG visible in the div? Here is a link to the code: http://codepen.io/helloworld/pen/HjkhK <div style="height:100px;background:yellow;"> ...

What is preventing Swift's Grand Central Dispatch from functioning properly in the imageView of a TableView cell

I recently developed a chat application where users can send image messages. However, I encountered an issue where the images would not download to the local document immediately when posted to a specific recipient. Strangely, after clicking back to the pr ...

Rearrange the alignment of a series of neighboring divs in a creative manner

This question delves into the realm of conceptual thinking rather than just jQuery specifics. In my scenario, I am populating a container with divs that have a top value set in a non-linear manner. Each div's top value is calculated using a formula th ...

Footer alignment issue when using react-full-page is causing it to not lineup at the bottom of the page

Currently, I have integrated the react-full-page package into my project. However, after adding the Footer to the routes, I noticed that the footer is only visible in the second section of the page and does not appear at the bottom as expected. If you wan ...

"Comparison: Utilizing HTML5 Video Player with IE8 Embed Fallback versus Implementing Fixed

This dilemma has me at my wit's end. In an HTML5 Video element, I've included an mp4, ogg, and an embedded mp4 fallback. However, on the embed fallback in IE8, all my attempts to position the fixed element (#fixed) above it with z-indexing have f ...

Tips for concealing the close option and close functionality within the alert view, leaving only the option to click on the "Open app" button

I recently utilized the UIlocalNotification method with guidance from this informative link: Adding Local Notifications With iOS 4 My current project requires a specific functionality: The notification alert should display only a single button labeled " ...

iOS Simulator is currently not displaying the current location

I am currently attempting to display the user's current location on an MKMapView called mapView. I have requested permission and taken all necessary steps, but for some reason, the current location is not appearing on the map. Below is the code. Plea ...

What is the best way to change a NSString from JSON into an NSDictionary?

FINAL EDIT WITH THE SOLUTION: A resolution to the issue is presented below: -(void) attackLawyers { lawyers = [[[NSArray alloc] init] autorelease]; NSLog(@"%@", userReceived); NSString *myRequestString = [NSString stringWithFormat:@"user=%@", userRece ...

Issue with allowing the second floating div to occupy the remaining horizontal space inside the container div

Describing the scenario, there is a container division with two floating divisions of different widths. You can view it live by following this link (look for "Hotel booking" section): I have added a border to the second division. My goal is to make this s ...

I am attempting to create a stylish border for the .navbar-collapse element, but unfortunately, my efforts have been unsuccessful so far

I need assistance with adding a border around my mobile drop-down menu. I've tried using .navbar-collapse but it's not working. Any suggestions? Here is a sample image of the mobile size: https://i.sstatic.net/O9oA1.png Below is my code: < ...