Solved

Removing Responsivity from Website

Posted on 2013-11-29
11
350 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 500 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 500 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
 
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 500 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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 500 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now