iOS 7 iPad Safari Landscape innerHeight/outerHeight layout issue
In my case, the solution was to change positioning to fixed:
@media (orientation:landscape) {
html.ipad.ios7 > body {
position: fixed;
bottom: 0;
width:100%;
height: 672px !important;
}
}
I also used a script to detect iPad with iOS 7:
if (navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)) {
$('html').addClass('ipad ios7');
}
iOS 7 iPad Safari Landscape innerHeight/outerHeight layout issue
In my case, the solution was to change positioning to fixed:
@media (orientation:landscape) {
html.ipad.ios7 > body {
position: fixed;
bottom: 0;
width:100%;
height: 672px !important;
}
}
I also used a script to detect iPad with iOS 7:
if (navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)) {
$('html').addClass('ipad ios7');
}
Ipad: window.height() give bad value in Safari but not in Chrome
Safari browser on iOS has a bottom bar (unlike chrome) that is being calculated inside the window height while it isn't really part of the window/page.
you need to detect cases (with user-agent) where the client uses Safari browser on iOS device, and then you need to set the height of the body (with javascript) to $(window).height() - bar_height
, and it should solve your problem.
hope that helps.
iPad in landscape gives wrong width and height
The width and height of the screen and of the window in the screen don't change as the screen orientation changes, they will always be width = 768 and height = 1024 (until Apple makes an iPad with more pixels, like the height of iPhone's has changed).
In that screen window, you have a view controller with a root view. The size of that view will change with the screen orientation.
iOS Safari browser website issue (no height?)
Gallery has zero-height, height: 100%;
doesn't do what you expected. Use 100vh instead.
.h100, #gallery .slideshow, #gallery .slidewrap, .galleryWrap, #galleryView, #galleryView section.read, gallery, #gallery, .slideshow .view-area {
height: 100vh;
}
Related Topics
How to Create a Curve on the Top of a Background
How to Include One CSS File in Another
What Do "Flex" and "Justify-Content" Achieve That "Text-Align" Doesn'T
Does Element Width Include Padding
How to Center Elements Horizontally or Vertically With Twitter Bootstrap
Gradients in Internet Explorer 9
How to Rotate the Background Image in the Container
Css Page-Break Not Working in All Browsers
How to Create Equal Height Columns in Pure Css
How to Make React CSS Import Component-Scoped
Css Selector For Attribute Names Based on a Wildcard
Applying CSS Styles Only to Certain Elements
How to Validate Vendor Prefixes in CSS Like -Webkit- and -Moz-
Have a Variable in Images Path in SASS
Webkit Bug with ':Hover' and Multiple Adjacent-Sibling Selectors