Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Odd media query behavior

Engaged ,
Oct 18, 2025 Oct 18, 2025

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

TOPICS
Browser , Code , Error , How to , Performance , Publish
256
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 21, 2025 Oct 21, 2025

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.

 

Translate
Community Expert ,
Oct 19, 2025 Oct 19, 2025

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?

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 21, 2025 Oct 21, 2025

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2025 Oct 21, 2025

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.

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 21, 2025 Oct 21, 2025

Thank you! That cures it.

 

I assume that line of code needs to be present if I add any pages. Am I correct?

 

Matthew

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2025 Oct 21, 2025
LATEST

Yes. It should be in all new HTML files. 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines