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


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:




1 answer

0 vote


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,

Having the same issue Shannon!

Here is my CSS.


position: fixed;

z-index: 4;



top: 50%;

left: 50%; }


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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

374 views 20 10
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