Copy link to clipboard
Copied
ALL of my media queries on my portfolio site work magnificantally when viewed on a desktop or laptop. However, one of its pages won't adjust when viewed on a moble device, while the rest will. Is there a logical reason for this? If yes, how should I go about fixing it?
Matthew
URL: https://matthewjablonski.com/my-composition.html
Code Errors: https://validator.w3.org/nu/?doc=https%3A%2F%2Fmatthewjablonski.com%2Fmy-composition.html
MISSING VIEWPORT META TAG.
It's present on your index.html page, but not on my-composition.html page.
Add this line of code to your <head> tag.
<meta name="viewport" content="width=device-width, initial-scale=1">
Hope that helps.
Copy link to clipboard
Copied
Answers to layout questions are contained in your code.
What's the URL to the problem page online?
Also, on which devices are the media queries breaking? Is it happening in all mobile devices or just certain ones?
Copy link to clipboard
Copied
matthewjablonski.com
Please navigate to my "illustration-menu," then click on "my-composition" (at the very bottom).
To add the "my-composition" page, thus far, I simply dubplicated my index page. The Index page never has had any issues. Before, I started editing elements (at all), I published it, I discovered the problem.
As shown here on Image #1, the break point is at 768px. I've seen it break successfully on my desktop and laptop, but not on either my or someone else's phones.
Matthew
Copy link to clipboard
Copied
URL: https://matthewjablonski.com/my-composition.html
Code Errors: https://validator.w3.org/nu/?doc=https%3A%2F%2Fmatthewjablonski.com%2Fmy-composition.html
MISSING VIEWPORT META TAG.
It's present on your index.html page, but not on my-composition.html page.
Add this line of code to your <head> tag.
<meta name="viewport" content="width=device-width, initial-scale=1">
Hope that helps.
Copy link to clipboard
Copied
Thank you! That cures it.
I assume that line of code needs to be present if I add any pages. Am I correct?
Matthew
Copy link to clipboard
Copied
Yes. It should be in all new HTML files.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now