css mode -landscape -portrait ///// problems
Hi
I have this problem, i´ll hope somebody help me.
I try to use baker for make a magazine whit images in jpg one for portrait mode and other for landscape mode. I use css
/////////////////////css//////////////////
/* iPad [portrait] */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) {
body{margin:0px; padding:0px; } img {margin:0px; padding:0px; }
.landscape { display: none; margin:0px; padding:0px; } .portrait { display: block; margin:0px; padding:0px; } #landscape { display: none;margin:0px; padding:0px; } #portrait { display: block;margin:0px; padding:0px; }
}
/* iPad [landscape] */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape) {
body{margin:0px; padding:0px; }
.portrait { display: none ;margin:0px; padding:0px; } .landscape { display: block; margin:0px; padding:0px; } #portrait {display: none; margin:0px; padding:0px; } #landscape {display: block; margin:0px; padding:0px; }
}
//////////////////////and in the html ////////////////
the div whit the class="landscape" or the class="portrait" whit the image inside
////////////////////////// or use css in the body like this
@media only screen and (max-width: 767px) {
bbody {
background-image:url(images/sumario2_v.jpg) ;
background-repeat:no-repeat;
}
}
but in the new baker, when i use this, in the chage of the orientation, the page sometimes or disapear or make a white splash... i´ts aleatory
thanks
@media only screen and (min-width: 480px) and (max-width: 767px) {
body { background-image:url(images/sumario2_l.jpg) ; background-repeat:no-repeat; }
}