HTML Navbar scaling page instead of moving content - html

I have a problem. On my site http://www.veniria.esy.es when I'm swiping out the navbar, the content should move to the right with the navbar - and it do so - on PC. When I'm trying to swipe out the navbar on smartphone, the whole page scales down, and I don't know why. Can somebody tell me what am I doing wrong?

You haven't set up your viewport for mobile. Just add this to your <head>
<meta name=viewport content="width=device-width, initial-scale=1">

I tested on iPhone and it didn't scale down to me.
However, I noticed the viewport is not mobile friendly.
Try putting this on inside <head>:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />

Related

Webpage opens zoomed on mobile

When I open my page on mobile, it is automatically zoomed in to probably about 125%. It looks fine when you zoom out, but obviously I want it to open at 100%. I have this:
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
but was wondering if it's possible that it could be a different issue. My body width and height are currently styled at 100%, but I tried switching to auto and that did not help the zoom effect.
this question has an answer here: Webpage starts zoomed in on mobile devices
<meta name="viewport" content="width=1000">
I had the similar problem and just adding height to the meta tag solved my issue
<meta name="viewport" content="width=device-width" height="device-height" initial-scale="1" , maximum-scale="1" />

Website very narrow on mobile

For some reason I can't seem to find help on this from searching the internet... perhaps I'm not wording it well.
I've had this problem come up previously, but for right now it's on this website:
http://merchantbankingresources.com/
You can see in the screenshot that the website is pushed to the left and very narrow. It's on an iPhone 4s.
The proper sizing of the page is controlled by the viewport meta property. Adding something as below to your website's head would scale your website automatically to the device width.
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0">
After putting it in, you can make your page occupy whole page with width:100%;.
EDIT- The <ul> in your gform is actually causing the problem. It is rendering to a wrong position.
EDIT- Change the .gform_body css. It gives it a left of 500px
Try adding this code in the HEAD
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="cleartype" content="on" />
I thought this was a classic case of the html, body not wanting to stretch, but the issue lies within the page itself.

Viewport not resizing layout on mobile view

My site's layout isn't responsive so I want it to shrink my whole layout if the user is viewing on mobile devices. I'm using this viewport code <meta name=viewport content="width=1024"> but it won't shrink my layout on mobile view. Anyone know how to fix? my site is http://www.sailormoon.xyz
try this.
<meta name="viewport" content="width=1024, initial-scale=1, minimum-scale: 1, maximum-scale: 1">
or
<meta name="viewport" content="user-scalable = yes">

Responsive design: viewport isn't being applied properly

Here is my website, www.offergrind.com
I made it fully non-responsive but the problem is that if we view it in mobile it is displaying the top left part.
Is there any code such as
<meta name="viewport" content="width=SITE_MIN_WIDTH, initial-scale=1, maximum-scale=1">
What should i do to make the website to display fit in mobile view ?
Start with this. At minimal, it will make your website fit the device, but everything will be sized down.
<meta name="viewport" content="width=device-width">
You should also look in CSS pre-processors, I was blown away by how many CSS files you reference.
I would get rid of the viewport meta tag altogether. If your website was not designed to be responsive, it will only make things worse. See this for more:
Stop using the viewport meta tag (until you know how to use it)
Use the below meta tag for your website
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
The meta tag above explains everything:
width="device-width" width of the website is equal to device width
initial-scale=1.0 means the website will not scale to fit the device screen
when we set minimum-scale=1.0, maximum-scale=1.0 and user-scalable=0 means user will not be able to scale the webpage (it will turn off pinch-zooming by setting maximum-scale to 1, or using user-scalable=no. )

Is there a meta tag I can use to make sure my website scales down to fit the iPad viewport?

Basically I have a site at the moment that is width 940px, at the moment I just need this site to be viewable on iPad whilst I begin adding in media queries to tailor the site for each device. Is there a meta tag I can use so that my site scales down when on iPad?
I would use this:
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1" />
See developer.mozilla.org/en/Mobile/Viewport_meta_tag/.
It sets the width and height to the device's width and height, sets the initial zoom to 1, and the maximum zoom to 1 (therefore making the page not zoomable).
EDIT: If you want the page to still be zoomable, remove maximum-scale=1:
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
I use this in all my Mobile Sites.
The iPad has a 1024x768 screen. You should be fine before adding in media queries.