View Single Post
Old 05-19-2013, 12:30 PM   #10
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Jellby View Post
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
RbnJrg is offline   Reply With Quote