Fix a block in the modal view

Is it possible to fix a block in a modal so that when scrolling down, the first block stays fixed?

I tried using the sticky function in the header, but I can’t make it stay fixed.

1 Like

Hi,

This is possible.
In the modal page settings, go to custom code => code inside header and insert the code below:

<style>
 #list-details1 {
  position: fixed;
  float: left;
  z-index: 1000;
  width: 100%;
 } 
</style>

Change list-details1 by the Id of the block you want to be fixed

2 Likes

It worked perfectly, thank you very much for your help :raised_hands:t2:

1 Like