Hey there, you might want to give this a shot:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.example {
padding: 20px;
color: white;
}
/* Custom breakpoints for different screen sizes */
@media only screen and (max-width: 600px) {
.example {font-size:0.8rem;line-height:28px}
}
@media only screen and (min-width: 600px) {
.example {font-size:0.9rem;line-height:28px}
}
@media only screen and (min-width: 768px) {
.example {font-size:0.95rem;line-height:28px}
}
@media only screen and (min-width: 992px) {
.example {font-size:1rem;line-height:28px}
}
@media only screen and (min-width: 1920px) {
.example {font-size:1rem;line-height:28px}
}
</style>
</head>
<body>
<h2>Suggested Media Query Breakpoints</h2>
<p class="example">Adjust the size of your browser window to witness the background color change in this paragraph as per different screen sizes.</p>
</body>
</html>