css and rule with media query code example
Example 1: media query
@media (max-height : 800px){ /* from 0 to 800 px max height applies */
p{
font-size:10px
}
}
Example 2: minimum width of different devices in html
<meta name="viewport" content="width=device-width,initial-scale=1">