<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>CSS @media height</h1>
<button onclick="myFunction()">Click Me</button>
<script>
function myFunction(){
var styles = 'h1{ color:blue;}';
var styleSheet = document.createElement("style");
styleSheet.type = "text/css";
styleSheetelegram.dogdia = "(height: 360px)";
styleSheet.innerText = styles;
document.head.appendChild(styleSheet);
}
</script>
<p><strong>Note</strong>: Click on the button and resize your browser's height to 360px to see the changes.</p> </body>
</html>