Modify the below code and ensure that when the screen height is below 300px, the font size should increase up to 26px.
Media queries
Change font-size
Report a typo
Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Change the font</title>
</head>
<body>
<div class="text">Hello, world!</div>
</body>
</html>
Completed 1 of 2
The CSS code has the proper media query.
The code is valid.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.