Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Removing Responsivity from Website

Posted on 2013-11-29
11
Medium Priority
?
371 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

972 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