manuelkiessling/nodebeginner.org

iPad view

Closed this issue · 4 comments

Hi there, thanks for the fantastic resource!

It'd be fantastic to read this book on tablets. I tried very briefly to fix the site view on my iPad, but I can't come up with an 'elegant' solution. Basically, because #book is 640px wide and the font is large, the book content is crammed within a thin vertical strip, making it hard to read.

I messed with #book width, setting it to 1000px, which improves things but it's a terrible hack. You could potentially use Javascript to test whether it's being displayed on an iPad, and set the width accordingly (still a hack).

Or perhaps use a JS lib that detects a mobile device and uses a completely different layout, more suited for tablets/mobile?

Anyway, thanks again!

I've added a webkit only CSS which enlarges the font - it's cool for iPhone, but probably too much for iPad. Have you played around with that?

Manuel Kiessling

Am 11.05.2011 um 04:17 schrieb arturadib reply@reply.github.com:

Hi there, thanks for the fantastic resource!

It'd be fantastic to read this book on tablets. I tried very briefly to fix the site view on my iPad, but I can't come up with an 'elegant' solution. Basically, because #book is 640px wide and the font is large, the book content is crammed within a thin vertical strip, making it hard to read.

I messed with #book width, setting it to 1000px, which improves things but it's a terrible hack. You could potentially use Javascript to test whether it's being displayed on an iPad, and set the width accordingly (still a hack).

Or perhaps use a JS lib that detects a mobile device and uses a completely different layout, more suited for tablets/mobile?

Anyway, thanks again!

Reply to this email directly or view it on GitHub:
#4

Hey Artur,

I've changed the special webkit CSS to "auto", which seems to work quite clever for the different iOS devices. Tell me if the iPad text size is now ok for you.

Perfect! Thanks for the prompt response and fix.

Artur Adib
http://www.linkedin.com/in/arturadib

On Wednesday, May 11, 2011 at 4:17 AM, ManuelKiessling wrote:

Hey Artur,

I've changed the special webkit CSS to "auto", which seems to work quite clever for the different iOS devices. Tell me if the iPad text size is now ok for you.

Reply to this email directly or view it on GitHub:
#4 (comment)

You're welcome. Thanks for supporting the project by suggesting improvements.