I have a website which must be responsive for mobile phones. I've created it using my desktop. When I adjust browser windows it's working perfectly for mobile phone but when I check it on my real mobile phone: Microsoft- 640 it's not responsive to the mobile view.[Website working fine in all devices except Windows phone]
Images in Bootstrap 3 can be made responsive-friendly via the addition of the .img-responsive class.
Refer url: http://getbootstrap.com/css/#images
I think that you may be missing in adding the meta viewport tag in the index.html. The meta viewport is defined inside <head> tag like this :
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
For more information about meta viewport, you can read this article from w3school. Hope it helps
Related
Recently, I just discovered that I have to add <meta name="viewport" content="width=device-width, initial-scale=1.0"> to my HTML web pages now in order to render responsively on a phone or a tablet screen.
It wasn't the case last year where I didn't have that meta tag, and the page still worked responsively on a phone or a tablet screen.
Did HTML introduce a change that mandates that meta tag? Where do I see that changelog? And what change broke the responsiveness of the pages without the meta tag?
No. It has been required to stop mobile devices from assuming websites were designed for desktop devices and zooming out since Apple introduced it with the original iPhone.
I have developed I website for one of my clients when I check it by "Mobile/ Responsive Web Design Tester " chrome Extention it's pretty responsive but when I'm checking on my phone it's not responsive I have tried everything that I knew but couldn't find the problem any help will appreciate it
the site line is Link
HTML5 introduced the possibility of controlling the sizing through the meta tag. You can use this tag in your <head> to tell the device which scale to use on your content.
Try adding this into your page <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Source: https://www.w3schools.com/css/css_rwd_viewport.asp
I want my website to be responsive on all platforms (especially mobile), not just on a desktop when resizing the browser window.
I have used the meta viewport tags in my <head> that other similar threads say I should do, but nothing has worked.
What's not working with the viewport tag #Rohan? I noticed that it was missing from your template
<meta name="viewport" content="width=device-width, initial-scale=1.0">
I've created a test site. I've used media queries in css but when I load the page on mobile, I don't see the mobile version and when I re-size the browser the site is responsive. I've read at multiple places to not to use *-device-width. So, what am I missing? What could be the resolution?
Add this to the head of your website:
<meta name="viewport" content="width=device-width, initial-scale=1">
This will set the width of your page to follow the screen width of your device.
It was my mistake. I used javascript to override meta tag and it was causing issue in proper responsiveness. Fixed javascript.
I have the problem that my website is resizing correctly when I change the viewport in chrome or go to it directly on my phone.
It does work however when i just resize my browser window.
This is the website http://maxehlers.com/test/ if you would like to try it out.
Most stuff on the website is set up with percentages for with and height.
How can i make the website act responsively when accessing it from a mobile device? Do I have to add media queries?
I think you are missing the viewpoint meta tag
here are the docs on MDN
something like <meta name="viewport" content="width=device-width, initial-scale=1"> should sort it.
There is more good info here on css tricks on resposive tags