- Joined
- Nov 24, 2022
- Messages
- 80
- Reaction score
- 7
Hello.
Can anyone tell me what is wrong with this code?
I want html element to fill whole area.
<html lang="Pl" >
<head><meta name="viewport" content="width=device-width, initial-scale=1/">
<meta charset="UTF8">
<style>
@media screen and (max-width: 900px){
html{background-color:green;display:fixed;position:absolute;border:2px solid red;transform:rotate(90deg);min-width:100vh;min-height:100vw;max-width:100vh;max-height:100vw;width:100vh;height:100vw;}
}
</style> </head>
<body >aa
</body>
</html>
Can anyone tell me what is wrong with this code?
I want html element to fill whole area.
<html lang="Pl" >
<head><meta name="viewport" content="width=device-width, initial-scale=1/">
<meta charset="UTF8">
<style>
@media screen and (max-width: 900px){
html{background-color:green;display:fixed;position:absolute;border:2px solid red;transform:rotate(90deg);min-width:100vh;min-height:100vw;max-width:100vh;max-height:100vw;width:100vh;height:100vw;}
}
</style> </head>
<body >aa
</body>
</html>