Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: John Stumbles Newsgroups: comp.infosystems.www.authoring.stylesheets,comp.infosystems.www.authoring.html,comp.lang.javascript Subject: Re: fixed position sidebar and small screen/mobile devices? Date: 11 Feb 2011 16:23:09 GMT Lines: 45 Message-ID: <8rl63dFufU1@mid.individual.net> References: <8rkp9eFjhU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net d8pUcgGoQ1qSozIaJ9JElwATd/pLdxIisJwRJJAI7cVS0h+ovI Cancel-Lock: sha1:cpTQ70KiESjuTZC1XaRApjzgVbI= User-Agent: pan 0.119 (Karma Hunters) Xref: csiph.com comp.infosystems.www.authoring.stylesheets:4503 comp.infosystems.www.authoring.html:4303 comp.lang.javascript:21560 On Fri, 11 Feb 2011 06:26:49 -0800, David Mark wrote: >> However on an Android (and possibly other mobile devices, or if one >> resizes a conventional desktop-based browser down to a small enough >> window) the user can't scroll away from the fixed elements to view the >> content. > > Fixed elements or not, they should still be able to scroll the > document. Some mobile devices (e.g. iPhone) show only a portion of > the viewport at a time though. > > Perhaps you mean they can't scroll to see the entire vertical sidebar > (as the content is not large enough to permit scrolling)? I don't have a 'droid but someone with an HTC Hero tells me if he scrolls sideways to get to the content pane, after a second or so the sidebar repositions itself over it. If I resize a desktop-based browser window small enough the fixed side and top bars do get in the way so maybe that's what he's getting. > You certainly can't browser sniff on the server. With PHP I can pick up the user agent e.g. The HTTP_USER_AGENT for the problem unit is: Mozilla/5.0 (Linux; U; Android 2.1- update1; en-gb; HTC Hero Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17 > It would be OK, but it would be much better if you kept scripting out > of your layout. That's what I'd rather do. Thanks. -- John Stumbles Fundamentalist agnostic