I am using HTML5 BoilerPlate.
I want the font size of a certain block to be small ONLY on mobile devices.
I tried this, but this did not work:
.searchresult {
font-size: 0.5em;
line-height: 1.4;
}
@media only screen and (min-width: 480px) {
.search-result {
font-size: 1em;
}
}
@media only screen and (min-width: 768px) {
.search-result {
font-size: 1em;
}
}
@media only screen and (min-width: 1140px) {
.search-result {
font-size: 1em;
}
}
I thought that the usual size under @mediawould work, but the font is small on my Mac and mobile device.
I would be grateful for any help, thanks!
source
share