When used CSS, I can correctly align my elements with css c Chrome. In chrome inspector-> ipad mode, everything looks as it should. But when I test it on the iPad itself, some CSSdo not apply. I found ipad specific CSSmedia queries as follows:
** **
_::-webkit-full-page-media, _:future, :root .my-class {
padding-right: 0;
}
****
@media not all and (min-resolution:.001dpcm) { @media
{
.my-class {
padding-bottom: 0;
}
}}
****
@media screen and (min-color-index:0)
and(-webkit-min-device-pixel-ratio:0) { @media
{
.my_class {
padding-bottom: 0;
}
}}
The problem is that they work great with portrait mode. For me there is no specific way to apply CSSin landscape mode. How can I use media queries for landscape mode in a real iOS iPad / Safari? Without affecting any other browser?
Update
I am not looking for standard media queries like
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) { /* STYLES */ }
Landscape mode
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) { /* STYLES */}