141
Views
3
Comments
Make an item follow page when scrolling
Question

Good Morning all, 

i am trying to add some styling to an element where when i scroll down my page a certain container will follow the scrolling page without leaving the view of the page.

Image 1 shows the top of the page with all of the tabs showing whereas image 2 shows the page scrolled down but some tabs are missing. im trying to make them all appear wherever i am on the page.


UserImage.jpg
Accelance Partners

@Maxwell Mckinnon

for better understanding attach your .oml here

Thanks,

Shriyash

2020-07-02 13-32-59
Max de Groot

Hi Maxwell,

You should be able to do this with some CSS styling. Add position: fixed to the menu to make it stay on the same place on the page even when scrolled.


Max

2023-10-21 19-42-11
Tousif Khan
Champion

Hello,

You can archive this by applying some css to it

.sidebar {

  height: 100%;

  position: fixed;

}

Something like this

you can take a reference from here
https://www.w3schools.com/howto/howto_css_fixed_sidebar.asp

Hope this helps

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.