11-26-2018, 08:59 AM | #1 |
Enthusiast
Posts: 47
Karma: 10
Join Date: Jun 2018
Location: UK
Device: Android, iPad, iPod, kindle {keyboard,fire7,hdx8.9} kobo, Sony PRS 600
|
EPUB, iBooks and Kindle media queries
There's little usable information about CSS @media queries for EPUB and Kindle out there. And what there is, is often wrong or outdated. Just a couple of weeks ago I was struggling with width and height as reported by iBooks (now called Apple Books) on iPhone and iPad: they're certainly not device pixels, and they're not what's quoted on various blogs and community sites.
And before you state the obvious: I'm not advocating the use of pixel based breakpoints, but sometimes it really helps to know what kind of device a story is read on so you stay in control. In the end I made a small EPUB to figure out dimensions and other device facts, and that gave me the idea to ask you to lend a hand so I can collect and list the data gathered. Hopefully this gets enough traction that it stays current even when device updates or new devices pop up. The "Ebook @Media Queries" EPUB (and an equivalent Kindle mobi) is at https://ebookfonts.uk/fdir/free-ebooks.html. Last edited by DaleDe; 11-26-2018 at 12:53 PM. Reason: correct having an extra bracket in the link ] |
11-26-2018, 04:15 PM | #2 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
Advert | |
|
11-26-2018, 04:43 PM | #3 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
11-26-2018, 04:57 PM | #4 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
11-26-2018, 05:23 PM | #5 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
All the links on that page time out, including the Home etc buttons at the top, and the Contact link at the bottom. BTW the OP is probably a 'he' - Klaus Schallhorn BR |
|
Advert | |
|
11-26-2018, 05:32 PM | #6 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
11-26-2018, 05:49 PM | #7 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
11-26-2018, 06:32 PM | #8 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
11-27-2018, 09:10 AM | #9 |
Enthusiast
Posts: 47
Karma: 10
Join Date: Jun 2018
Location: UK
Device: Android, iPad, iPod, kindle {keyboard,fire7,hdx8.9} kobo, Sony PRS 600
|
This is really really weird. Just tried the download (again) and it works, same goes for all the links on any of these pages. Have you answered the simple math question to show you're not a robot? Must have, otherwise you get a "Bad Request" answer.
That server runs a copy of fail2ban to guard against whatnot, but the limits allow normal web browsing w/o a problem. klaus |
11-27-2018, 09:15 AM | #10 | ||
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
|
||
11-27-2018, 09:55 AM | #11 |
Enthusiast
Posts: 47
Karma: 10
Join Date: Jun 2018
Location: UK
Device: Android, iPad, iPod, kindle {keyboard,fire7,hdx8.9} kobo, Sony PRS 600
|
Gets weirder all the time. Must have been a routing issue somewhere between Putin and you. The server's last reboot was more than 6 weeks ago.
Just out of interest, where are you situated? I'm in the UK and I'm hosting in the UK, so there's obviously no issue for me. klaus |
11-27-2018, 10:58 AM | #12 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
11-28-2018, 03:40 AM | #13 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I tried to download the links when the topic was first posted, and got all the same issues as Hitch. I just tried now and the downloads work.
Although the robot math problems were annoying. (I was also able to get around many of them by just going Back/Forward in my browser. It gave me the same exact math question.) :P PS. The font you use in your ebooks, Arsenal, is much too thin to read on screen. I had to bump up the zoom in Sigil and my eyes still hurt. Also, some of your buttons here: https://ebookfonts.uk/cgi-bin/ffdl.cgi?j=fb link to the same exact files, even though they have different filenames. Last edited by Tex2002ans; 11-28-2018 at 03:49 AM. |
11-28-2018, 09:08 AM | #14 | |||
Enthusiast
Posts: 47
Karma: 10
Join Date: Jun 2018
Location: UK
Device: Android, iPad, iPod, kindle {keyboard,fire7,hdx8.9} kobo, Sony PRS 600
|
Quote:
Quote:
Quote:
Thanks for the feedback. klaus PS: I've set the font-size to 100% now, so it'll be as large or small as you configured in your browser. Last edited by kso; 11-28-2018 at 09:31 AM. |
|||
11-28-2018, 02:33 PM | #15 | |
Bibliophagist
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iBooks Author ePub3 Media Queries | mattmc | ePub | 2 | 10-12-2016 05:55 PM |
Media Queries for images as dropcaps in Kindle DX | verydeepwater | Kindle Formats | 3 | 03-22-2014 05:35 PM |
Epub to mobi not recognizing media queries | srascal | Conversion | 2 | 03-25-2013 05:19 PM |
Media Queries on Kindle Previewer | AIR-WIZZ | Kindle Developer's Corner | 26 | 10-15-2012 10:10 AM |
Kindle Fire woes... indent and media Queries | Oxford-eBooks | Kindle Formats | 11 | 04-10-2012 10:08 PM |