Responsive Media Queries for Device Orientation in CSS


Apply different styles based on the orientation (landscape or portrait) of the device.

Source Code

@media (orientation: landscape) {
    body {
        background-color: lightblue;
    }
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments