Div not sticking to page

Posted in: Newspaper
Post count: 67

I’m trying to page a div stick alongside the page. It is not working as intended, I’ve tried javascript and css position: sticky. The element is not moving. Can you help me with this?

https://prnt.sc/x1kkGMdw-sDv

Post count: 27744

Hi,

You can make a row or column sticky -> https://i.imgur.com/sKdRI3s.png -> https://i.imgur.com/ElJpNeZ.png
Maybe you need to have a strong path to apply your code.

Thank you!

Post count: 67

I dont know if I can put this code in a row or column and make it sticky. It is a separate element that has some buttons in it, that needs to be sticky while scrolling vertically. Is there any other way to approach this?

Post count: 27744

Hi,

Please let me know what element you use to add the code. You can set that element in a row/column and make that row/column sticky.

Thank you!

Post count: 67

I added it using HTML element

Post count: 27744

Hi,

Raw HTML, or have you added the code in the post editor?

Thank you!

Post count: 67

I’m adding it via Cloud Template for the Posts PAge.

Post count: 21065

Hello @Sudhin!

Click on that row and make it sticky. Make sure that the element raw HTML is the only element in that row. Otherwise, add a new row element, drag and drop the raw HTML element there, and make the row sticky.

Thank you!

Post count: 67

I’ve tried what you said, still that element is not becoming sticky. https://prnt.sc/F9gbDLow4Wd_

Post count: 21065

Hello @sudhin!

Then it could be a plugin conflict there.
Make a test and deactivate ALL plugins except tagDiv ones, also if you are using a cache plugin, deactivate it, clear all cache and try again.

Let me know the results!

Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.