Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Created August 25, 2015 22:38
Show Gist options
  • Save gunnarbittersmann/8b17117fec7da4ffa1d3 to your computer and use it in GitHub Desktop.
Save gunnarbittersmann/8b17117fec7da4ffa1d3 to your computer and use it in GitHub Desktop.
forcing user to turn device into landscape mode
/**
* forcing user to turn device into landscape mode
* http://forum.selfhtml.org/self/2015/jul/25/website-darstellung-in-den-landscape-modus-zwingen/1646490#m1646490
*/
@media (orientation: portrait) and (max-width: 20em)
{
html::after
{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: black;
color: white;
font-size: 100vmin;
content: "⤺";
text-align: center;
}
}
<p>Pretty landscape, hunh?</p>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment