The Zurich release has arrived! Interested in new features and functionalities? Click here for more

how can i make a Sticky Footer in the service portal?

D_ Nistal
Tera Contributor

Hi,

I'm trying to make a sticky footer on my personal Orlando instance but i cant get a satisfactory solution. I've tried all the sticky footer examples exposed in this other community post (https://community.servicenow.com/community?id=community_question&sys_id=bc1e0faddb9cdbc01dcaf3231f96...) but none of these solutions did work for me.

Here's a photo of my non-working sticky footer:

find_real_file.png

Thank you.

4 REPLIES 4

Satyanarayana C
ServiceNow Employee
ServiceNow Employee

Hi,

On the theme record, you have two options, fixed header and fixed footer. This will make the footer sticky.

find_real_file.png

Thanks

Thank you satyach for your answer but it doesn't resolve my problem. The "Fixed footer" check just sets fixedly the footer, even if i scroll down the footer doesn't move.

find_real_file.png

 

The Sticky footer i want behaves like this:

find_real_file.png

(ref:https://css-tricks.com/couple-takes-sticky-footer/)

Any way to do this without changing anything in the HTML?

Kiran Teja1
Kilo Guru

Hello Nistal

 

Yes this is a common issue if you use the fixed Header and Footer. In order to create a sticky footer I would suggest to make some changes to the CSS of your footer.

 

The below sample footer which I tried in Orlando version and it working fine.

 

HTML:

 <div class="sample-footer">	
  ${© Copyright of Company Group {{::c.data.time}}}
 </div>

 

 CSS:

.sample-footer {
  position: fixed;
   left: 0;
   bottom: 0;
   width: 100%;
   background-color: black;
   color: white;
   text-align: center;
   padding: 26px 15px;
}

Result :

find_real_file.png

 

You can also search for more information regarding Sticky footers below

 

https://startbootstrap.com/snippets/sticky-footer-flexbox

 

I hope this information will be helpful. Please mark this answer as correct or helpful if this helps you.

 

Best Regards

Kiran Teja