Nathan Skidmore

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromNathan Skidmore
ToMe
SubjectMade a Small Change to you CSS to get Position Fixed
Date1 September 2008 15:23
Basically I've changed top and left to margin-top and margin-left, it allows
for the same effect but has the added bonuse of leaving the top and left css
values to be edited dynamical. So you can change the location of a fixed
element in relation to the screen using javascript. See my prototype at
[URL]

Press the middle mouse button the scroll the map.
Right click opens the context menu, the options in the context menu will
open new panels *like the thing top left only that one is not created as a
panel*
Double clicking the header on a panel will close it.
And clicking and dragging the header of a panel will drag the panel.

I've tested it in IE6 and it works fine in there, (IE7 and all other
browsers use the position: fixed CSS), just thought it might be worth making
a note off on http://www.howtocreate.co.uk/fixedPosition.html that page.

Kind Regards
:) Skid :)
FromMe
ToNathan Skidmore
SubjectRe: Made a Small Change to you CSS to get Position Fixed
Date1 September 2008 18:43
Nathan,

Thanks for letting me know.

> Basically I've changed top and left to margin-top and margin-left, it
> allows for the same effect but has the added bonuse of leaving the
> top and left css values to be edited dynamical.

This approach has some merit, though to be honest it's time to stop catering
for IE 6 with that hack. That's why the article on my site is deprecated. I
do not want to encourage anyone to use it.

> See my prototype at [URL]

Interesting, but server-side sniffing for the UA is prone to far too many
problems, and I devote a large amount of my site and time trying to convince
people not to use that approach. Please don't do it. The approach I used was
far more reliable, which is why I used it.

In any case, I still recommend you just drop IE 6 here. It's not worth the
effort. It has held the Web back for far too long already. IE 6 users can do
Web developers a favour by at least using an up to date version of their
chosen browser, or just live with the degraded site - any site like that can
be made to degrade well enough in older browsers, or browsers with limited
capabilities.


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
FromNathan Skidmore
ToMe
SubjectRe: Made a Small Change to you CSS to get Position Fixed
Date1 September 2008 22:06
That prototype is for a game I started work on ages ago, because its a game
and what I intend to do with it I can't afford for not to cater for IE 6 and
FF 2 because it could go badly wrong if not careful, I'm deliberately coding
it in a object orantened manner, for a few reason. The end result will be
just about everything will be genereated and controled by javascript, the
page itself will probably load with no html in it but the head and the body
tag. But despite that I've only really come across two things IE 6 wouldn't
do, semi transprant PNGs and the fixed positioning CSS.

I've also never had a problem with server-side snuiffing, until I do there
no reason for me to change it, but I appershate the advice.

[Ed. it's the users who are stuck with the problem, not the developer]

:) Skid :)
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.