Good morning guys, I want to change the font size in my menu via calc in css but I don't know how this formula should look like.
At @media screen and (max-width: 800 px) is the beginning with 2 em at 600 px the font size should've 1.5 em and at 400 px 1 em. Does someone know how to do it?
I want also all the steps between those pixel widths. Like 765 px = x em
Thats my code so far:
@media screen and (max-width: 800px) {
#menu a{
display:block;
height:60px;
font-size:2em;
padding-top: 15px;
}
}
@media screen and (max-width: 600px) {
#menu a{
display:block;
height:60px;
font-size:1.5em;
padding-top: 15px;
}
}
@media screen and (max-width: 400px) {
#menu a{
display:block;
height:60px;
font-size:1em;
padding-top: 15px;
}
}
But I want to compress the code that I've only one media query