Jump to content
Sign in to follow this  
WebWerx

Responsive Design not working Correctly on iPhones in Landscape mode

Recommended Posts

WebWerx

I am having an issue with the code below inasmuch as when I test on an iPhone in Landscape mode, it does not work at all. Everything is fine in portrait mode. Hmmm???

/* Sitewide Media Query Tweaks */
	@media (max-width:479px) {
	  .phone {display:none;}
	  .proud {display:none;}
	  .search-box-top-right {display:none;}
	  .homepage-box {display:none;}
	  #fbox_7560 {display:none;}
	  #fbox_7561 {display:none;}
	  #fbox_7562 {display:none;}
	  #contentbox .red-footer-banner {display:none;}
	  .section-sb_footcols {display:none;}
	  .section-sb_fullwidth {display:none;}
	  .widget-pad {display:none;}
	}

I must be missing something. The site can be viewed at 480px here: http://mattkersley.com/responsive/ > Paste this in the box: http://goo.gl/YXHZ7

Share this post


Link to post
Share on other sites
catrina
The site should be able to adapt to iPhone landscape mode. Which version of Framework are you using?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
WebWerx
@catrina: 2.2.1 (and don't suggest that I upgrade to 2.2.2 - [b]:-)[/b] )

Share this post


Link to post
Share on other sites
WebWerx
@catrina: I also tried it in Adobe Shadow - same result.

Share this post


Link to post
Share on other sites
Danny
Hi WebWerx, Can yo do me a favour and remove temporally your custom code Homebox and see if your site works correctly in landscape mode. I think this issue may be caused by your custom HTML.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
evert100
A tip i use the plugin "browser specfic css". Works great. in your css don't you need .iphone instead of .phone? The responsiveness works great. www.edugram.nl The problem i had was the margin which exits between menu and branding. So far i solved it for the iphone. Is there a general class for smartphones?

Share this post


Link to post
Share on other sites
Stefan
Hey Webwerx, Just tested in landscape & portrait mode on an iPhone and I get pretty much the same result. Were you able to fix the issue?

Share this post


Link to post
Share on other sites
WebWerx
@Danny: Thanks for the input. I did try your suggestion and no luck. Then I got to thinking... I had used "max-width:479px" per a suggestion from @beardedavenger. If smaller resolutions worked, why would a larger (iPhone portrait) not work. Hmmm. So instead of going down, I went up to max-width:481px - adding 1 px. So anything below 481px would take my CSS calls.... And... yes sir it works.... DOH! @evert100: .phone is the selector for the phone number at the top of our site. My intent is to eliminate all unnecessary elements of the homepage and interior page sidebars on smaller screen sizes as it is simply too busy. So everything you see in my sample code is meant to not be viewed on screen sizes 480 px and below. iPhone, Blackberries (if anyone still has one), Windows phones etc... I am just learning this stuff, so I may be missing something somewhere along the line. BTW I used Adobe Shadow in my testing (highly recommended).

Share this post


Link to post
Share on other sites
evert100
@WebWerx the testsite you gave is not working correct. I have the same result using an "user-agent-switch" add-on for the Firefox. Using the body-class .iphone as i implemented in my website doesn't give a accurate result. On the iphone it does! Did you take a look at the plugin i mentioned? You don't have to struggle with all "the max/min-width" stuff. Good luck.

Share this post


Link to post
Share on other sites
WebWerx
@evert100: Now I get why you were mentioning .iphone... just looked at the browser specific CSS plugin.. AHHHHH.....

Share this post


Link to post
Share on other sites
evert100
Maybe this is something for you. I just made my first experience with it. But works great. Sorry i wasn't clear enough to you. The great thing is that it places extra body classes when viewed on a specific device. Looking in the source code of the plugin i found the classes. I cannot test on android and such ans user-agent-switcher aren't completely accurate.... Good luck!

Share this post


Link to post
Share on other sites
evert100
@WebWerx One more thing, try the fixed menu option. It looks better on mobile devices. Your menu is scaled down so everything comes on a second line etc. See http://edugram.nl

Share this post


Link to post
Share on other sites
WebWerx
@evert100: Working on it -- just sent you a PM with some questions.

Share this post


Link to post
Share on other sites
WebWerx
@evert100: Really have a look at Adobe Shadow. If you have a Mac you will be in Heaven (It's free)

Share this post


Link to post
Share on other sites
Jenny
http://www.pagelines.com/tracking/wiki/Browserspecificcss%3AMainPage for some docs :)

Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
evert100
@webwerx I installed adobe shadow (for windows) Awesome. This synchronisation up to 5 devices is amazing. For ipad i didn't install because pagelines is perfect for ipad. No browser-specific-css needed. I answered your PM. @simple_mama this link is very useful, thanks.

Share this post


Link to post
Share on other sites
WebWerx
:-) Don't bring Jenny into this! ;-)

Share this post


Link to post
Share on other sites
WebWerx
@simple_mama: There needs to be more info on doing device specific CSS with the Browser Specific CSS plugin.... Juts sayin'

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×