maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   CSS Positioning in stock browser (https://talk.maemo.org/showthread.php?t=90725)

DJJonosound 2013-07-13 22:56

Hi,

I have been working on a website that uses a fixed header. It works fine on iphone and android, but does not work on the N9. (I like to make sites support my own phone :p) At the moment I am using just position:fixed, which as mentioned before, does not work on the N9 stock browser.

Does anyone here know a workaround to suit the N9, or is this question better reserved for stackoverflow?

Thanks,

Wikiwide 2013-07-14 00:01

Re: CSS Positioning in stock browser
 
Nokia N9 browser supports <header> tag. That's all I know.
What happens if you try "position: fixed !important;"?
Best wishes.

DJJonosound 2013-07-14 03:55

Re: CSS Positioning in stock browser
 
<header> is practically a glorified <div>,
So thats not really going to help.
By the looks of that site, the browser doesnt fully support the position:fixed tag. So probably not going to be any support on that front, unless someone knows some hacky method of doing it.

qwazix 2013-07-14 06:34

Re: CSS Positioning in stock browser
 
The N9 browser deliberately does not support position:fixed. This was probably done because some desktop websites are completely unusable with it enabled. You can use position:absolute, and the onscroll event of the body to make the top attribute of the absolute div equal to body.scrollTop, to achieve the same thing.


All times are GMT. The time now is 01:57.

vBulletin® Version 3.8.8