Fixed Positioning

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
mcollins27
Beginner
Beginner
Posts: 9
Joined: Mon Apr 30, 2007 10:37 pm

Fixed Positioning

Post by mcollins27 »

Does anyone know if the menus can be fixed to the top of the viewport? So that scrolling would not affect them? Sort of like as if the menus were in a top frame for example.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Fixed Positioning

Post by Ruth »

Hi,

Here's a demo for fixed position. Please read it as there are cautions mentioned :) I have tested in IE7, FF2, 3, Safari4 for pc, NN7.2, 9, Opera 9 and it works in all. However, I cannot test on Mac or other available browsers.

http://milonic.com/fixed_position.php

Ruth
User avatar
mcollins27
Beginner
Beginner
Posts: 9
Joined: Mon Apr 30, 2007 10:37 pm

Re: Fixed Positioning

Post by mcollins27 »

Ahh - thanks for that! I thought, however, that IE7 supported CSS fixed position natively. Why the need for the tricks?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Fixed Positioning

Post by Ruth »

I have no idea, except perhaps because Milonic tries to make sure the menu is cross browser. Not sure about the support natively for fixed position, but that may have something to do with say, images, backgrounds etc. Perhaps for the js menu this is needed in IE. That's all I can suggest

Ruth
Post Reply