Detecter l’orientation de l’appareil en CSS3 :
@media screen and (orientation:portrait) {
    // Portrait mode
}
@media screen and (orientation:landscape) {
    // Landscape mode
}Ou inclure une orientation JavaScript :
document.addEventListener("orientationchange", function(event){
    switch(window.orientation) 
    {  
        case -90: case 90:
            /* Device is in landscape mode */
            break; 
        default:
            /* Device is in portrait mode */
    }
});