Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.infosystems.www.authoring.html > #5108
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.infosystems.www.authoring.html, comp.infosystems.www.authoring.stylesheets, comp.lang.javascript |
| Subject | Re: Change UI layout |
| Followup-To | comp.infosystems.www.authoring.html |
| Date | 2014-07-03 10:38 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <1851843.LhWb2JNgvM@PointedEars.de> (permalink) |
| References | (3 earlier) <Ia-dnViIJrTLlCnOnZ2dnUVZ_tidnZ2d@westnet.com.au> <6661908.BVoKEv2Ayq@PointedEars.de> <DPednQYpBcKxKSnOnZ2dnUVZ_sudnZ2d@westnet.com.au> <DPI-20140703035451@ram.dialup.fu-berlin.de> <QKCdne4mnaDKQCnOnZ2dnUVZ_qGdnZ2d@westnet.com.au> |
Cross-posted to 3 groups.
Followups directed to: comp.infosystems.www.authoring.html
[X-Post ciwa.html, ciwa.stylesheets, comp.lang.javascript; F'up2 comp.infosystems.www.authoring.html] Andrew Poulos wrote in <news:comp.infosystems.www.authoring.stylesheets>: > So I'd hoave to get the DPI and then the screen size to work out the > physical size of the screen to decide whether that's "small" and then > change the page's styles accordingly. Maybe the best solution is neither HTTP, nor CSS or scripting. I thought that it would suffice to set “max-width” or “width” CSS properties, and I found older recommendations for @viewport rules on the Web. But what really worked for me is this “meta” element I found when I emulated “HTC Sensation, Evo 3D” (since I own an HTC Sensation) in Chromium 34 on <https://twitter.com/>, which redirected me to <http://mobile.twitter.com/>: <meta name="viewport" id="viewport" content="width=device-width, initial- scale=1.0, maximum-scale=1.0, user-scalable=0"> In particular <meta name="viewport" content="width=device-width, initial-scale=1.0"> appears to be working fine for the language selection on my Web site, <http://PointedEars.de/>. (I still have to do something about the background when content is zoomed, though.) It would appear that non-mobile browsers ignore this element, so you can always include it, and you may not need an extra mobile version in simple cases like this. (It did not work so well for “Home” because it prevented the horizontally arranged "links", that I put there particularly for mobile “Features”, from being accessible. And fixed widths like “540px”, unstead of “device-width”, prevent the zoom in the built-in Android browser. So I am not using it there for the time being. Also, setting the viewport width this way may trigger @media queries for the screen unintentionally; that happened to me as well.) > Then I'd need a bunch of different devices to test on which given > <http://cartoonized.net/cellphone-screen-resolution.php> > will not be easy or even possible. Please do not play stupid. <http://www.catb.org/~esr/faqs/smart-questions.html#intro> PointedEars -- When all you know is jQuery, every problem looks $(olvable).
Back to comp.infosystems.www.authoring.html | Previous | Next | Find similar | Unroll thread
Re: Change UI layout Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-07-03 10:38 +0200
csiph-web