2
I’m trying to change the size of a font when decreasing or increasing my screen size using @media
I know this is how it works:
#Fonte{font-size:10vw;}
@media (max-height:880px){
#Fonte{
font-size: 10vh !important;
}
}
But that command only deals with height.
How can I treat the height and width ?
Can be done in the same @media ?
I was thinking of something like if the screen height is changed or the screen width is changed:
@media (max-height:880px, max-width:1279px){
#Fonte{
font-size: 10vh !important;
}
}
Understood, but I was looking for something as if I increase the height of the screen would be applied a vh in the source and if I increase the width of the screen be applied a vw in the source. So I understood a little vw changes the font relative to width and vh relative to height. , in this reply, would work if I traded the condition and for an or ?
– Gabriel Silva
@Gabrielsilva yes VH is height, and VW width of the screen, the viewport, not the container. Your rule has great chances of going wrong qq way pq is complicated to use source measures based on viewport. However I left an edition that can help you. And in the last case you can create how many rules
@ media
want for each height, width, orientation etc....– hugocsl