How to make progress bar stick to the top of the page | XM Community
Solved

How to make progress bar stick to the top of the page

  • 24 August 2020
  • 4 replies
  • 157 views

Badge +3
  • Level 1 ●
  • 20 replies

Hello, are you aware of a solution of how to make the progressbar sticky, i.e., to have it always visible even when you scroll down the page? I guess it should be possible with JS?
Thanks!

icon

Best answer by duc_pham 16 October 2020, 15:46

View original

4 replies

I tried the following in the Custom CSS box in the "Look and Feel" tab.
.Skin #ProgressBar { position: -webkit-sticky; /* Safari */ position: sticky; top: 0;}
It worked for me at first, then for some reason, Qualtrics wiped it and when i tried it again, it didn't work. You may want to try this first, and let me know if it works?
UPDATE:
I changed the above code slightly, and now it worked:
.Skin div#ProgressBar { position: -webkit-sticky; /* Safari */ position: sticky; top: 0;}
The behavior seems inconsistent to me, but I might be wrong.

Badge +3

Thanks, duc_pham!
I tried your updated version but for me it made the progress bar move to the bottom of the page, and it is not sticky:
screenshot with progress bar at the bottom of a question page.Could it be that it depends on the Browser? I tested it in Firefox 80.0.1.

You are using theme "Flat" from the "Look and Feel" tab. In my instance I'm using theme "Classic". That might be the difference.

Badge +3

Indeed, it works with the "Classic" theme for me, too.
Thanks duc_pham!

Leave a Reply