Greetings, I have a simple CSS query that I would like assistance with.
I am currently grappling with the concept of managing widths in CSS. I have an absolute positioned <div>
that contains a relatively wide table. The width of the <div>
is set to "1300px". Everything functions correctly on desktop browsers - individuals with high-resolution monitors can view the whole table without issue. However, those with lower resolutions or viewing the page on smaller browser windows are able to horizontally scroll within the div to see all content. It all works seamlessly.
However, I have encountered a peculiar situation with the iPad2 (Safari), which has a native resolution of 1024px. Ideally, I anticipated that the iPad would display the initial 1024px of content and permit users to swipe or scroll horizontally to view the remainder of the table. Interestingly, instead of following this expected behavior, it appears that the iPad attempts to fit the entire 1300px into the 1024px screen and then reduces the font size to accommodate everything within the constrained space.
My question pertains to the conventional method of utilizing CSS to instruct the iPad's browser to display whatever fits within its native 1024 resolution and allow users the option to swipe or scroll horizontally to access the rest of the content. Any insights shared through a concise code snippet would be greatly appreciated.
Thank you for your time.