em, rem ,vmax
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<div class="content">
<h1 class="title">Unlimited movies, TV shows and more</h1>
<h4 class="sub-title">Watch anywhere. Cancel anytime.</h4>
<p class="desc">Ready to watch? Enter your email to create or restart your membership.</p>
</div>
</body>
</html>
//CSS file
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
body{
/* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
margin: 0px;
font-family: "Inter", sans-serif;
}
.content{
margin: 0px auto;
width: 800px;
font-size: 3vmax;
text-align: center;
}
.title{
/* background-color: orange; */
font-size: 0.75em;
}
.sub-title{
font-size: 0.5em;
}
.desc{
font-size: 0.45em;
}
Comments
Post a Comment