DIV with Custom Style Doesn't work on the Page, but works in preview

Hello!

I am using Confluence OnDemand.

I have a DIV container (which holds some text and a TOC), with a custom CSS Style, set to "position:fixed".

In the page Preview, the DIV and the text is working fine, it stays fixed in place with the page, if you scroll down.

But when I Publish the page and open it, fixed positioning DOESN'T work. If i scroll down, the text scrolls away.

Any suggestions? 

 

 

I used the guide from Mick Davidson from this post to do the whole thing:

https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-set-a-fixed-floating-image-that-scrolls-with-page/qaq-p/501072

 

 

1 answer

1 vote

Vasily,

Can you show us where exactly you added the container, and what it contains in terms of CSS? Is there any other CSS within the container that are working or are not working?

I suspect it may be due to the New Look Confluence, but I'd like to test out a few things.

Kind Regards,
Shannon

Having the same issue Shannon!

Here is my CSS.

.img-emptest{

position: fixed;

z-index: 4;

overflow-x:

hidden;

top: 50%;

left: 50%; }

 

Whatever image I load into this does not work the same in preview and when published. 

Having the same issue. Works in Preview but not in Published mode. There are a couple other reports @ https://community.atlassian.com/t5/Questions-for-Confluence/Floating-TOC-in-the-right-column/qaq-p/106867#U895078

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

311 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you