The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Vasily Provotorov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
SMS
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

TAGS
AUG Leaders

Atlassian Community Events