I have a navigation menu; whose font-size is 10px for small device, 20px for medium and 50px for large device. Unfortunately I am new to tailwind css.
Now I have written the css as below. Is this correct way, do I need to convert the pixel to rem
.nav-link {
font-size: 10px;
}
@media (min-width: 768px) {
.nav-link {
font-size: 20px;
}
}
@media (min-width: 1024px) {
.nav-link {
font-size: 50px;
}
}