<meta>
tag that lets the iPhone know how wide to display the initial page. I added the following code to the <head>
in my template yesterday:<body>
element.<body>
is 808 pixels wide, so there were 172 pixels of content-free space being used to display the page. On a screen that’s 320 pixels wide, that’s significant. So much so, that by making this simple change, the headings on my blog posts are now readable on first load of the page (previously, the text was too small.)Zeldman
So his one line of code would be: Business card shop 6 0 3 download free.
Daring Fireball
Which would mean this addition to the <head>
:
But his problems aren’t over yet—there’s still an issue with usability. You can double-tap to zoom in to read an article—and when you double-tap to zoom back out, you’re using the suboptimal scale factor again. This is easy to work around by specifying a minimum scaling factor: Wing ide 6 1 5.
And it’s still just one line of code!
Are you wondering how I came up with that magic scaling factor of 0.4? I used a tried and true development practice: trial and error. While using this sophisticated technique, make sure to close the window in MobileSafari (by clicking on the red X icon.) The viewport scale is not modified when you refresh the page, so you’ll only see changes when starting on a new page.
Hopefully, Jeffrey and John will read this post and make the changes to their sites—I like reading them on the iPhone :-)
Update: WordPress is turning the double quotes in the examples above into smart quotes. You’ll want to convert them before adding them to your template. And for more information on viewports, check the Apple iPhone developer page (you must click on “Optimizing for Page Readability” to view it.)
![Lines Lines](https://miro.medium.com/max/1200/1*fjC0yRt2d6eUJbsPU6Rjzw.jpeg)
Thanks for any help, Jan
Title page
TOC
Lines Of Code 1 0 12
Abstract (heading 1) (don't want any numbering)Definitions (heading 1) (don't want any numbering)
Computer Code 1 And 0
Introduction (heading 1)(want this to be 1.0 NOT 1)
etc