Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Removing Responsivity from Website

Posted on 2013-11-29
11
Medium Priority
?
376 Views
Last Modified: 2013-12-01
I initially designed my website to be responsive but have since not had the time to take it all the way to completion. In the meantime I would like my site to appear the same in all browsers & phones, ie remove all responsive features. How do I achieve this on http://www.stoneflypress.com?


Thanks in advance for any help!
Khel
0
Comment
Question by:khellar
  • 6
  • 5
11 Comments
 
LVL 58

Assisted Solution

by:Gary
Gary earned 2000 total points
ID: 39686267
Add to the end of your css

.container{
min-width:940px
}
0
 
LVL 1

Author Comment

by:khellar
ID: 39686317
iphone screen shot of background image way too small

Thank you I did add this code to the end of my css and on my iphone I'm still seeing the site zoomed in to just the logo with the entire bg fit to that zoomed in view. Then when I zoom out, the background on the page and on the footer are stuck at the original width. How do I set the zoom to the full width of the page when the iphone user lands there? I feel like this may have been set manually by our first developer but I don't know what code controls it.

Thank you Gary for your help!
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 2000 total points
ID: 39686336
If you want to prevent scaling, which all phones will do anyway, and force the site to the actual pixel dimensions then you need to disable it

Amend your meta tag with the bolded

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:khellar
ID: 39686349
Ok thank you for the help. I did try that code and the page comes up still zoomed in -  only now I can't zoom out and the background image is still sized down in the top left size of the screen when I scroll around. Any other suggestions?
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 2000 total points
ID: 39686354
It may be a cache thing in the browser, working fine on my mobile here...
And on #wrapper {} (styles.css line 43) add min-width: 940px;
0
 
LVL 1

Author Comment

by:khellar
ID: 39686489
Looks like you were right here Gary! The background is now reaching all the way across the site and after I changed user-scalable to 'yes' I was then able to zoom in and out like I wanted. The only thing that is still not working the way I'd like it to is that the site is zoomed in when it loads. Is there any way to get the site to load so that the full width of the site fits in the mobile viewer (ie zoomed out)? Really appreciating the great input!
0
 
LVL 1

Author Comment

by:khellar
ID: 39686540
Also now this section of the site is having problems with it's appearance: http://stoneflypress.com/blog/

Is that because it doesn't use #wrapper or .content?
0
 
LVL 58

Expert Comment

by:Gary
ID: 39686994
Confused now...
Do you want the site to be a static 940px wide or scalable?
0
 
LVL 1

Author Comment

by:khellar
ID: 39688009
Sorry for the confusion Gary. On an iphone the site should be zoomed out so the whole 940px container fits on the available screen space, then the user should be able to zoom in and out. Maybe I'm not understanding how to ask for that because I don't know how the code works, but hopefully you're getting my drift.

Thanks :)
Khellar
0
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 39688352
Then remove maximum-scale=1.0, user-scalable=no from the meta tag - this will allow the phone to zoom it to fit on the page.
0
 
LVL 1

Author Comment

by:khellar
ID: 39688864
Bingo. Site looks perfect now on iPhones. Thanks so much!
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question