AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] wpforo-menu sticky?

2 Posts
2 Users
0 Reactions
2,334 Views
Posts: 7
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@thoand)
Active Member
Joined: 5 years ago
[#16687]

Hi there,

I wish to make the wpforo-menu sticky. I tried it using plain css:

#wpforo-menu {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}

But sadly that did not work. Has anyone a idea?

regards, thoand


1 Reply
Tutrix
Posts: 1519
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tutrix)
Noble Member
Joined: 6 years ago

@thoand

If any parent/ancestor of the sticky element has any of the following overflow properties set, position: sticky won’t work.

overflow: hidden;
overflow: scroll;
overflow: auto;

Example here on wpforo.com

#page {
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    font-size: 14px;
    overflow-x: hidden;
}

then replaced this with

overflow: visible;

or

overflow: unset;

and use z-index to make the menu scroll over the other items

watch the video > https://www.screencast.com/t/TTWxd7uy

 


Share: