This seems to have been asked a few times in these pages, but I haven't found a solution that worked for me. I have editing rights in some of the spaces on Confluence and write content here (mostly procedure manuals). I am looking for a floating button macro (or a workaround) so that the Table of Contacts can be accessed from anywhere within the Confluence article since these procedure manuals tend to be quite long. I am not a superadmin and have no coding background. Appreciate ideas!
Hi Rukshana,
It sounds like you're trying to create a "sticky" element. Here's how I was able to do that in Confluence Server:
#sticktotop {
position: sticky;
z-index: 100;
top: 0;
}
I believe both of these macros are included in Cloud. Hopefully this will work for you.
Good luck!
@Jared Brenner thanks so much! Since I have zero clue about CSS/HTML, it took me a while to figure out what you meant. But after fiddling around with it for a while on w3schools, I got it. I used the below for my purpose:
Placed a Div macro after the 'Table of Contents' ends. Within the Div macro I used the CSS Style:
position: sticky; height: 50px; padding: 12.5px; box-sizing: border-box; background-color: rgba(176,224,230,0.9); z-index: 100; top: 0
I wrote the text "Go back to Table of Contents" within the panel of the Div macro and linked it to an anchor near the ToC. It works beautifully! Learned something today! Thanks so much!!! :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's great! I'm glad you were able to implement it. If you could mark the question as Solved that'll help other users looking for information about this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a solution for Confluence Cloud?
I would very much like to know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interesting, how to do that on Server side :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a way to do this in confluence cloud since cloud doesn't allow CSS anymore. (For any developers at confluence FOR THE LOVE OF GOD PLEASE BRING BACK CSS. Thank you)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Addie Hutchins : Have you found out anything? It´s really frustrating not be able to have a floating button. :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please look at my comment under Jared Brenner above. I used his solution and it worked :) Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this possible with Confluence Cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.