Viewport is not working for using page width of 1170px for mobile devices, how to fix? -


i used below things not working, page width 1170px , not fit mobile devices. new in site 1 can me out? in advance.

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=yes" /> <meta name="viewport" content="target-densitydpi=device-dpi" />  <meta name="handheldfriendly" content="true"/> <meta name="viewport" content="width=device-width" />  <meta name="viewport" content=", initial-scale=0.5" />  <meta name="viewport" content="width=480, user-scalable = yes, initial-scale=1.0, maximum-scale=1, minimum-scale=1"> <meta name = "viewport" content = "width = device-width, initial-scale = 0.33, user-scalable = yes"></meta> <meta name = "viewport" content = "width = 980px, initial-scale=0.4, maximum-scale=1" /> <meta name="viewport" content="width=320, maximum-scale=1, minimum-scale=1, initial-scale=0"> 

i suggest using below.

under head:

<meta name="viewport" content="initial-scale=1.0"> 

under stylesheet:

/* smartphones (portrait , landscape) ----------- */ @media screen , (min-device-width : 320px) , (max-device-width : 480px) { /* styles */ }  /* smartphones (landscape) ----------- */ @media screen , (min-width : 321px) { /* styles */ }  /* smartphones (portrait) ----------- */ @media screen , (max-width : 320px) { /* styles */ }  /* ipads (portrait , landscape) ----------- */ @media screen , (min-device-width : 768px) , (max-device-width : 1024px) { /* styles */ }  /* ipads (landscape) ----------- */ @media screen , (min-device-width : 768px) , (max-device-width : 1024px) , (orientation : landscape) { /* styles */ }  /* ipads (portrait) ----------- */ @media screen , (min-device-width : 768px) , (max-device-width : 1024px) , (orientation : portrait) { /* styles */ }  /* desktops , laptops ----------- */ @media screen , (min-width : 1224px) { /* styles */ }  /* large screens ----------- */ @media screen , (min-width : 1824px) { /* styles */ }  /* iphone 4 ----------- */ @media screen , (-webkit-min-device-pixel-ratio : 1.5), screen , (min-device-pixel-ratio : 1.5) { /* styles */ 

put tags, id's, classes, selectors, etc in above @media , stuff proper multiple device platforms.

hope helps.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -