My portfolio page is structured in a grid layout that is responsive on most devices, but encounters issues on certain mobile devices like the Nexus 6P. The content ends up stacking in a strange way, similar to Russian Dolls.
UPDATE: Through troubleshooting and research, I believe the problem lies in the original designer setting responsiveness using both em and px viewport sizes. Is this a common practice? I have included a link to screenshots and CSS files below as there are numerous media queries influencing this issue.
UPDATE: The problem occurs when the window size falls within the overlapping range of 40.063em and ~<640px media queries. It has been challenging to replicate in simulators, only occurring when switching from larger viewports to one with a width of 641px or smaller.
Nexus 6P display showcases odd stacking behavior
Following a suggestion from another post, I tried implementing "white-space:nowrap;" in the .work-item code and .work-item img. While it altered the stacking order, it did not resolve the issue.
RESOLVED: The HTML file for this module specified medium-6 and large-3 grid sizes, but omitted the declaration for small screens, resulting in awkward formatting.
<div class="medium-6 large-3 work-item">
I added small-6 to the class and made adjustments to the media queries to improve the layout.
<div class="medium-6 large-3 small-6 work-item">
Thank you for your assistance! Today, I expanded my knowledge on media queries and refreshed my understanding of grid systems.