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

Vasily Provotorov September 4, 2017

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
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 8, 2017

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

Charbel Dammous September 25, 2017

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. 

Kem McFadden September 19, 2018

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
TAGS
AUG Leaders

Atlassian Community Events