WebSite X5Help Center

 
John S.
John S.
User

Why is sticky not an option  en

Autor: John S.
Visitado 1731, Seguidores 1, Compartilhado 0  

I have a problem. I use a left menu on some pages.

As there is more levels, I cannot use the side-bar for the menu.

I intended to make the menu-object sticky then - BUT - it seems that sticky is not an option for the styling.

position: sticky ;   - this seems not to be an option

I can use fixed, absolute, relative and static but NOT sticky. It is as it is deactivated for the styling in X5.

I want to let the left-menu scroll until it reaches the 0 position and then it should get sticky.

How to do this.

Again : I know the code to position an object - it is only the sticky option that is not active ( it does not turn green as an option does when it is correct spelled). And I know that a side-bar object can be sticky but the sidebar is not an option.

Hope someone can help me here.

Kind regards

John S.

Publicado em
2 RESPOSTAS
Incomedia
Stefano G.
Incomedia

Hi John

Technically speaking, WebSite X5 does nothing to disable the CSS property and I also believe this could not be possible in any case. I tested the sticky property and it is interpreted correctly on every browser which officially supports it.

It is probable that the sticky position requires the Object on which it is applied to match certain requirement in order to work correctly and it is also very probable that either due to the Grid layout or some other way the HTML is constructed, the sticky property will not work correctly.

How to get it to work correctly greatly depends on what you're applying it to and the Staff cannot offer support for such a task

I will leave the topic open nonetheless so that other users might eventually stop by and help you out with this

Thank you for your understanding

Stefano

Ler mais
Publicado em de Stefano G.
John S.
John S.
User
Autor

It is as the version is an old version that does not know the sticky - but this is not logical as it does not seem to function when uploaded either.

But - never mind. I have found a way where I use the fixed. It does much the same and it is more steady where the menu is not bumping up and down.

I have an example here : http://bramminginfo.dk/starten.html

For those that should be interested, it is made so that the position is fixed and the offset is a number of px from the top.

position: fixed;
top: 80;

In SEO I have also moved the breadcrumb to the upper left corner.

I have adjusted it, so that it suits the different viewports.

This project is just started and needs a lot of fine-tuning - but it should be possible to see the idea in this.

Ler mais
Publicado em de John S.