![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Media Queries - Screen Size for Samsung Devices
Hello Experts,
I have a question, I'm working on an ePub that needs to be absolutely responsive on specific Samsung devices (Mobiles and Tablets) and I'm thinking of using Media Queries for screen size adjustments. What do you guys think about that? Is it a good idea to use Media Queries and if not what other options/methods can I use to make it absolutely responsive for specific devices? The reason behind making the ePub responsive only for a few devices is that the ePub will only be read on the mentioned devices and won't be available to any other device, it's a very specific informative ePub for company employees only. Any suggestions or alternate methods will be highly appreciated. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,070
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What do you mean by responsive? How responsive the ePub is depends on the program used with the ePub.
How are you making the ePub? What format ePub? What are you trying to achieve? |
![]() |
![]() |
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Hi @jswolf,
Thanks for responding. The ePub will be in a fluid format/layout, the generalized format. I want to achieve the best reading experience and display possible on the devices. The ePub reader that will be used to view/read that particular ePub will be generic, free, or open-source which are easily available, that's why I have some reservations and want to have the ePub as good-looking as possible. I want suggestions about using media queries, whether it's a good idea to use them or to avoid them altogether and style the ePub as generic as it can be and leave the display to the ePub reader. |
![]() |
![]() |
![]() |
#4 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,727
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Media queries will help if the renderer supports them. Unfortunately, the number of ePub renderers that I have seen on Android devices that support any media queries are pretty small.
My personal preference is to have all images/boxes sized in % as this seems to be the best supported option. You might want to take a look at a Vellum created epub since the media.css file is nothing but a collection of media queries which can give you some ideas that you can use. |
![]() |
![]() |
![]() |
#5 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,303
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I guess we're just not understanding what "special thing" you'd like to achieve with the MQs. An ePub is designed to be generic text which can reflow based on the user's selections: font, font-size, justification, margin size, line spacing, images, etc. etc. etc. A good 'generic reader' should be able to natively reflow your book in a pleasing manner.
Usually MQs are used if you want to change the way something is presented based on a specific query. For example: Code:
Query: Is this a kindle? Answer: yes Result: display a generic '***' chapter divider because kindle can't handle transparencies in their images and make them look like garbage. Answer: no Result: display an awesome .png image as the chapter divider which blends with the background color selected by the user. |
![]() |
![]() |
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,070
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,070
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
|
Quote:
That's actually a really helpful suggestion, I'll definitely check out the ePub created by Vellum. @Turtle91, The Context, once again, is rephrased for better understanding: My experiences with ePubs, especially when they're read on any Android-based epub reader are not something we might call satisfactory, there's always some kind of mishap, images cut off, text doesn't flow right, and pages don't always break or break too soon, even though epub styled very generic, there's always something that doesn't work. That's why I want to have absolutely restricted display options using media queries. The devices that will be used to read this ePub are very specific (because this ePub is a kind of learning manual that will be distributed only to the workers/employees of the company, and on very specific devices that are given by the company to the employees). @JSWolf, Thanks for suggesting the ePub readers, I guess if I don't follow on media queries, I can style the ePub as best as I can and suggest the same ePub readers. |
|
![]() |
![]() |
![]() |
#9 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,727
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,303
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
If you want to lock it down and make it ‘perfect’, then I recommend PDF. lol
|
![]() |
![]() |
![]() |
#11 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
If I've learned ONE THING in all these years here, lads and at the shop, it's that this line right here: Quote:
MQs are fine--but they're not going to do what the OP wants, not without causing greater grief somewhere else. This is the nature of ePUB--it reflows. It's never going to be "print perfect," as if print were ever perfect, either. PDF then. That's what I'd do, if the goal of "locking it down" is more important than portability and ease of use. (And the other thing is that unless you "lock down" what eReader or software they're using--that's the tail wagging the dog, too.) Hitch |
||
![]() |
![]() |
![]() |
Tags |
epub, mediaqueries, responsive |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
@media queries for older kindles? | emdashery | Kindle Formats | 27 | 10-22-2021 02:46 PM |
EPUB, iBooks and Kindle media queries | kso | Workshop | 22 | 11-29-2018 10:56 AM |
Media Queries | eggheadbooks1 | Kindle Formats | 4 | 12-16-2013 02:32 AM |
Calibre and Media Queries | chrlsdrwn12 | Calibre | 0 | 12-05-2012 11:16 AM |
Media Queries on Kindle Previewer | AIR-WIZZ | Kindle Developer's Corner | 26 | 10-15-2012 10:10 AM |