Open this example in the interactive library
Source code
<style>
@media (orientation: portrait) {
.demo {
text-align: center;
}
}
</style>
<div class="demo">Switch presentation in portrait view</div>
Switch presentation in portrait view with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
@media (orientation: portrait) {
.demo {
text-align: center;
}
}
</style>
<div class="demo">Switch presentation in portrait view</div>