Quote:
Originally Posted by Jellby
That's the problem, there is no (consistent, reliable) way of referring to the screen height, so you must use a fixed vertical size, but that may break things badly. What if someone reads it in a phone with a smaller screen? Or in landscape orientation? And it doesn't work as intended in larger screens either.
|
Hi Jellby;
I didn't do the try so I can give you a specific response but we have media queries in order to know those variables. For example, one could use:
@media screen and (orientation: portrait) {
/* Portrait styles */
}
@media screen and (orientation: landscape) {
/* Landscape styles */
}
Or something like this:
@media (max-height: 800px) and (orientation: landscape) {
/* code for 6 inches screens and Landscape mode */
}
Regards
Rubén