Question: My media queries appear to work when resizing the webview in Replit, but once I use an actual iPhone to view the live site, the media queries no longer apply. Any idea what I may be doing wrong?
/* Make the grid a single column when the screen width is less than 500px */
@media (max-width: 500px) {
.grid {
grid-template-columns: repeat(1, 1fr);
}
}
The first number in the dimensions is the height and the second in the width. so the width is still 844px. Try rotating it. The button is to the right of where it says No throttiling
@GoodVessel92551 great suggestion on Chrome Dev Tools, but my main issue is accessing https://aphorisms.dprevoznik.repl.co/ from an actual physical mobile device (i.e. iPhone 14 pro in my case). With my actual iPhone, that URL still shows two columns, indicating that the media query to show one column is not being applied. Can you try accessing the link on a mobile device?