PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, July 15, 2022

[FIXED] why @media only screen and (min-width: 768px) also apply for screen width less than 768px

 July 15, 2022     blogger, css, html, web-deployment     No comments   

Issue

The css for min-width 768 is not working properly in mobile. But same css is working properly in inpect mode for width less than 768 in chrome desktop browser.

@media only screen and (min-width: 768px){
#main {
    max-width: 75%;
    float: left;
}
}

But when I switch to mobile mode in inspect tool it's again not working properly.

enter image description here

I am trying to edit the blogger classic theme. link of the blog https://egadgetdeals.blogspot.com/2019/11/what-youll-build-in-part-1.html?m=1


Solution

The meta tag viewport to avoid zoom is missing, add this into the head tag :

<meta name="viewport" content="width=device-width, initial-scale=1">



Answered By - Julien van der Kluft
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing