In conjunction with their recent Search algorithm recalibration, Google are
urging to improve the experience of mobile users by adding to one's HEAD:
: <meta name=viewport content="width=device-width, initial-scale=1"> .
After following that advice for the 200 or so Opow-*.htm files in our
Mahabharata series, Google's Page Speed Insights rating-page upped their
"User Experience" scores from under 60 to over 90.
That's very gratifying ... unless there are reasons I'm not aware of that I
should beware Google's advice (are there?).
Other problems remain, of course -- I welcome advice how to deal with (i) a
long slender graphic (about 510px x 30px) so as to let it shrink to fit
even a 320 CSS-pixel wide viewport, and (ii) a 10-cell navigation table
currently spread out horizontally across the top of each page.
These items, perfectly comfortable on a notebook screen, do almost more or
less fit on a modern Android cellular handset held in landscape position,
but protrude way beyond the edges in portrait position.
Is there an alternative to the width="510" height="30" attributes I might
add within the img tag so as to let browsers know that, while it's a 510x30
image they're to expect, they're to reduce it, as needed, to fit within the
available space?
Also: can I use DIVs instead of TABLE cells to hold what I've currently got
in the TD cells of a wide, 1-rowed table, so that with a narrow viewport
the DIVs arrange themselves into several full-width rows, while with a
broader viewport they're content to line up in a single row? If so, how?
(That is, what's a valid idiomatic HTML expression I might use for that?)
Sample page:
<
http://tlvp.net/~b.mikolajewska/booknook/Mahabharata/Opow-158-MetaViewport.htm>.
To the extent these questions are more CSS questions than straight HTML,
please feel free to suggest moving to ciwas from the present ciwah. Thank
you all very much.
--
Avant de repondre, jeter la poubelle, SVP.